mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 21:22:20 +01:00
check if ctx and ssl are null when checking public key in certificate
This commit is contained in:
@@ -1607,6 +1607,9 @@ static int ProcessBufferCertPublicKey(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
|
|||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
word32 idx;
|
word32 idx;
|
||||||
#endif
|
#endif
|
||||||
|
if (ctx == NULL && ssl == NULL) {
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
|
}
|
||||||
|
|
||||||
/* Get key size and check unless not verifying. */
|
/* Get key size and check unless not verifying. */
|
||||||
switch (cert->keyOID) {
|
switch (cert->keyOID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user