Fix for building with BENCH_EMBEDDED. Fix for building without OPENSSL_EXTRA where wolfSSL_OPENSSL_malloc assumes size_t is defined. Improvements to the GCC-ARM IDE example.

This commit is contained in:
David Garske
2017-12-29 08:19:21 -08:00
parent f492c4f120
commit f71047ef2d
5 changed files with 18 additions and 7 deletions

View File

@@ -3138,10 +3138,11 @@ static void bench_hmac(int doAsync, int type, int digestSz,
int ret = 0, i, count = 0, times, pending = 0;
#if defined(BENCH_EMBEDDED)
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, MAX_DIGEST_SIZE, HEAP_HINT);
(void)digestSz;
#else
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, digestSz, HEAP_HINT);
#endif
/* clear for done cleanup */
XMEMSET(hmac, 0, sizeof(hmac));