We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ca379f + 5b6f86b commit 1dc177fCopy full SHA for 1dc177f
1 file changed
src/internal.c
@@ -18083,6 +18083,12 @@ static int SanityCheckMsgReceived(WOLFSSL* ssl, byte type)
18083
WOLFSSL_ERROR_VERBOSE(OUT_OF_ORDER_E);
18084
return OUT_OF_ORDER_E;
18085
}
18086
+ if (!ssl->options.resuming && ssl->options.verifyPeer &&
18087
+ !ssl->options.usingPSK_cipher &&
18088
+ !ssl->options.usingAnon_cipher &&
18089
+ !ssl->msgsReceived.got_certificate) {
18090
+ return OUT_OF_ORDER_E;
18091
+ }
18092
if (ssl->msgsReceived.got_certificate_verify||
18093
ssl->msgsReceived.got_change_cipher ||
18094
ssl->msgsReceived.got_finished) {
0 commit comments