Skip to content

Commit 389cf6e

Browse files
adjust post auth support with TLS 1.3
1 parent 37adf0f commit 389cf6e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/tls13.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8487,7 +8487,11 @@ int DoTls13Finished(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
84878487
}
84888488
else
84898489
#endif
8490-
if (!ssl->options.havePeerCert || !ssl->options.havePeerVerify) {
8490+
if (
8491+
#ifdef WOLFSSL_POST_HANDSHAKE_AUTH
8492+
!ssl->options.verifyPostHandshake &&
8493+
#endif
8494+
(!ssl->options.havePeerCert || !ssl->options.havePeerVerify)) {
84918495
ret = NO_PEER_CERT; /* NO_PEER_VERIFY */
84928496
WOLFSSL_MSG("TLS v1.3 client did not present peer cert");
84938497
DoCertFatalAlert(ssl, ret);
@@ -9961,6 +9965,9 @@ static int SanityCheckTls13MsgReceived(WOLFSSL* ssl, byte type)
99619965
* no certificate available.
99629966
*/
99639967
if (ssl->options.verifyPeer &&
9968+
#ifdef WOLFSSL_POST_HANDSHAKE_AUTH
9969+
!ssl->options.verifyPostHandshake &&
9970+
#endif
99649971
!ssl->msgsReceived.got_certificate) {
99659972
WOLFSSL_MSG("Finished received out of order - "
99669973
"missing Certificate message");

0 commit comments

Comments
 (0)