forked from wolfSSL/wolfssl
Gate on NO_FILESYSTEM
This commit is contained in:
@@ -2575,6 +2575,7 @@ static void* benchmarks_do(void* args)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_FILESYSTEM
|
||||||
if (hash_input) {
|
if (hash_input) {
|
||||||
XFILE file;
|
XFILE file;
|
||||||
file = XFOPEN(hash_input, "rb");
|
file = XFOPEN(hash_input, "rb");
|
||||||
@@ -2642,6 +2643,8 @@ static void* benchmarks_do(void* args)
|
|||||||
else {
|
else {
|
||||||
XMEMSET(bench_cipher, 0, (size_t)bench_buf_size);
|
XMEMSET(bench_cipher, 0, (size_t)bench_buf_size);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_ASYNC_CRYPT) || defined(HAVE_INTEL_QA_SYNC)
|
#if defined(WOLFSSL_ASYNC_CRYPT) || defined(HAVE_INTEL_QA_SYNC)
|
||||||
bench_key = (byte*)XMALLOC(sizeof(bench_key_buf),
|
bench_key = (byte*)XMALLOC(sizeof(bench_key_buf),
|
||||||
HEAP_HINT, DYNAMIC_TYPE_WOLF_BIGINT);
|
HEAP_HINT, DYNAMIC_TYPE_WOLF_BIGINT);
|
||||||
@@ -15458,9 +15461,13 @@ static void Usage(void)
|
|||||||
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -print */
|
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -print */
|
||||||
#endif
|
#endif
|
||||||
e++;
|
e++;
|
||||||
|
#ifndef NO_FILESYSTEM
|
||||||
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -hash_input */
|
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -hash_input */
|
||||||
|
#endif
|
||||||
e++;
|
e++;
|
||||||
|
#ifndef NO_FILESYSTEM
|
||||||
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -cipher_input */
|
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -cipher_input */
|
||||||
|
#endif
|
||||||
#ifdef ADVANCED_STATS
|
#ifdef ADVANCED_STATS
|
||||||
e++;
|
e++;
|
||||||
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -cipher_input */
|
printf("%s", bench_Usage_msg1[lng_index][e]); /* option -cipher_input */
|
||||||
|
Reference in New Issue
Block a user