fix for cryptocb with private key check

This commit is contained in:
Jacob Barthelmeh
2021-02-22 23:55:29 +07:00
parent 79ec07f5e1
commit ffbd565285

View File

@@ -7531,8 +7531,11 @@ int wolfSSL_CTX_check_private_key(const WOLFSSL_CTX* ctx)
}
}
}
else {
/* fall through if unavailable */
ret = CRYPTOCB_UNAVAILABLE;
}
/* fall through if unavailable */
if (ret == CRYPTOCB_UNAVAILABLE)
#endif
{
@@ -8162,9 +8165,12 @@ int wolfSSL_check_private_key(const WOLFSSL* ssl)
XFREE(pkey, ssl->heap, type);
}
}
else {
/* fall through if unavailable */
ret = CRYPTOCB_UNAVAILABLE;
}
/* fall through if unsupported */
if (ret != CRYPTOCB_UNAVAILABLE)
if (ret == CRYPTOCB_UNAVAILABLE)
#endif
ret = wc_CheckPrivateKeyCert(buff, size, &der);
FreeDecodedCert(&der);