Skip to content

Commit a7a6d5b

Browse files
authored
Merge pull request #5874 from JacobBarthelmeh/tls13
adjust post auth support with TLS 1.3
2 parents d0c9ec6 + 389cf6e commit a7a6d5b

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
@@ -8695,7 +8695,11 @@ int DoTls13Finished(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
86958695
}
86968696
else
86978697
#endif
8698-
if (!ssl->options.havePeerCert || !ssl->options.havePeerVerify) {
8698+
if (
8699+
#ifdef WOLFSSL_POST_HANDSHAKE_AUTH
8700+
!ssl->options.verifyPostHandshake &&
8701+
#endif
8702+
(!ssl->options.havePeerCert || !ssl->options.havePeerVerify)) {
86998703
ret = NO_PEER_CERT; /* NO_PEER_VERIFY */
87008704
WOLFSSL_MSG("TLS v1.3 client did not present peer cert");
87018705
DoCertFatalAlert(ssl, ret);
@@ -10220,6 +10224,9 @@ static int SanityCheckTls13MsgReceived(WOLFSSL* ssl, byte type)
1022010224
* no certificate available.
1022110225
*/
1022210226
if (ssl->options.verifyPeer &&
10227+
#ifdef WOLFSSL_POST_HANDSHAKE_AUTH
10228+
!ssl->options.verifyPostHandshake &&
10229+
#endif
1022310230
!ssl->msgsReceived.got_certificate) {
1022410231
WOLFSSL_MSG("Finished received out of order - "
1022510232
"missing Certificate message");

0 commit comments

Comments
 (0)