Merge pull request #1565 from embhorn/zd3883

wolfSSL_HMAC_Final parameter len should be optional
This commit is contained in:
David Garske
2018-05-17 13:19:19 -07:00
committed by GitHub

View File

@ -24579,7 +24579,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;
}