mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
fix for cryptocb with private key check
This commit is contained in:
12
src/ssl.c
12
src/ssl.c
@@ -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)
|
if (ret == CRYPTOCB_UNAVAILABLE)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@@ -8162,9 +8165,12 @@ int wolfSSL_check_private_key(const WOLFSSL* ssl)
|
|||||||
XFREE(pkey, ssl->heap, type);
|
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
|
#endif
|
||||||
ret = wc_CheckPrivateKeyCert(buff, size, &der);
|
ret = wc_CheckPrivateKeyCert(buff, size, &der);
|
||||||
FreeDecodedCert(&der);
|
FreeDecodedCert(&der);
|
||||||
|
Reference in New Issue
Block a user