From 86a2b050fe19172a615ea2561d67a6f476091fb7 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Mon, 23 Oct 2023 16:46:36 -0600 Subject: [PATCH] Gate on NO_FILESYSTEM --- wolfcrypt/benchmark/benchmark.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 2a0a1e2fc..3df9b7057 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -2575,6 +2575,7 @@ static void* benchmarks_do(void* args) goto exit; } +#ifndef NO_FILESYSTEM if (hash_input) { XFILE file; file = XFOPEN(hash_input, "rb"); @@ -2642,6 +2643,8 @@ static void* benchmarks_do(void* args) else { XMEMSET(bench_cipher, 0, (size_t)bench_buf_size); } +#endif + #if defined(WOLFSSL_ASYNC_CRYPT) || defined(HAVE_INTEL_QA_SYNC) bench_key = (byte*)XMALLOC(sizeof(bench_key_buf), HEAP_HINT, DYNAMIC_TYPE_WOLF_BIGINT); @@ -15458,9 +15461,13 @@ static void Usage(void) printf("%s", bench_Usage_msg1[lng_index][e]); /* option -print */ #endif e++; +#ifndef NO_FILESYSTEM printf("%s", bench_Usage_msg1[lng_index][e]); /* option -hash_input */ +#endif e++; +#ifndef NO_FILESYSTEM printf("%s", bench_Usage_msg1[lng_index][e]); /* option -cipher_input */ +#endif #ifdef ADVANCED_STATS e++; printf("%s", bench_Usage_msg1[lng_index][e]); /* option -cipher_input */