forked from wolfSSL/wolfssl
Merge pull request #7716 from anhu/post-hs-auth-check
Check the return code when calling post handshake auth functions
This commit is contained in:
@ -3585,8 +3585,11 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_POST_HANDSHAKE_AUTH)
|
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_POST_HANDSHAKE_AUTH)
|
||||||
if (postHandAuth)
|
if (postHandAuth) {
|
||||||
wolfSSL_CTX_allow_post_handshake_auth(ctx);
|
if (wolfSSL_CTX_allow_post_handshake_auth(ctx) != 0) {
|
||||||
|
err_sys("unable to support post handshake auth");
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (benchmark) {
|
if (benchmark) {
|
||||||
|
@ -3713,8 +3713,12 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
((usePskPlus) ? WOLFSSL_VERIFY_FAIL_EXCEPT_PSK :
|
((usePskPlus) ? WOLFSSL_VERIFY_FAIL_EXCEPT_PSK :
|
||||||
WOLFSSL_VERIFY_FAIL_IF_NO_PEER_CERT), 0);
|
WOLFSSL_VERIFY_FAIL_IF_NO_PEER_CERT), 0);
|
||||||
|
|
||||||
wolfSSL_request_certificate(ssl);
|
if (wolfSSL_request_certificate(ssl) != WOLFSSL_SUCCESS) {
|
||||||
|
LOG_ERROR("Request for post-hs certificate failed\n");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
LOG_ERROR("Successfully requested post-hs certificate\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user