diff --git a/src/internal.c b/src/internal.c index ea3b3f537..74f59faff 100644 --- a/src/internal.c +++ b/src/internal.c @@ -18083,12 +18083,14 @@ static int SanityCheckMsgReceived(WOLFSSL* ssl, byte type) WOLFSSL_ERROR_VERBOSE(OUT_OF_ORDER_E); return OUT_OF_ORDER_E; } +#ifndef WOLFSSL_NO_CLIENT_AUTH if (!ssl->options.resuming && ssl->options.verifyPeer && !ssl->options.usingPSK_cipher && !ssl->options.usingAnon_cipher && !ssl->msgsReceived.got_certificate) { return OUT_OF_ORDER_E; } +#endif if (ssl->msgsReceived.got_certificate_verify|| ssl->msgsReceived.got_change_cipher || ssl->msgsReceived.got_finished) {