wolfSSL_HMAC_Final parameter len should be optional

This commit is contained in:
Eric Blankenhorn
2018-05-17 08:53:21 -05:00
parent b7c61a72c8
commit 5cbb9e8341

View File

@@ -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;
}