From 5cbb9e8341892e82bdf2b96a0138ca97b6e53c63 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Thu, 17 May 2018 08:53:21 -0500 Subject: [PATCH] wolfSSL_HMAC_Final parameter len should be optional --- src/ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 41e1aba2d..4150db2f9 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -24508,7 +24508,8 @@ int wolfSSL_HMAC_Final(WOLFSSL_HMAC_CTX* ctx, unsigned char* hash, WOLFSSL_MSG("wolfSSL_HMAC_Final"); - if (ctx == NULL || hash == NULL || len == NULL) { + /* "len" parameter is optional. */ + if (ctx == NULL || hash == NULL) { WOLFSSL_MSG("invalid parameter"); return WOLFSSL_FAILURE; }