From 4592e0ec95db63bca32655acc52f81f0efcd0520 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 22 Apr 2020 10:16:20 -0700 Subject: [PATCH] Fix for use of incorrect devId for `wolfSSL_SHA3_256_Init`. --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index f2451329c..8a3b5298a 100755 --- a/src/ssl.c +++ b/src/ssl.c @@ -15774,7 +15774,7 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out, (void)sizeof(sha_test); WOLFSSL_ENTER("SHA3_256_Init"); - ret = wc_InitSha3_256((wc_Sha3*)sha3_256, NULL, 0); + ret = wc_InitSha3_256((wc_Sha3*)sha3_256, NULL, INVALID_DEVID); /* return 1 on success, 0 otherwise */ if (ret == 0)