forked from wolfSSL/wolfssl
set inital state of TLS 1.3 peerSuites structure
This commit is contained in:
@ -11165,6 +11165,8 @@ int TLSX_Parse(WOLFSSL* ssl, byte* input, word16 length, byte msgType,
|
|||||||
ret = KS_PARSE(ssl, input + offset, size, msgType);
|
ret = KS_PARSE(ssl, input + offset, size, msgType);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
default:
|
||||||
|
WOLFSSL_MSG("Unknown TLS extension type");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* offset should be updated here! */
|
/* offset should be updated here! */
|
||||||
|
@ -3379,6 +3379,9 @@ static int DoTls13CertificateRequest(WOLFSSL* ssl, const byte* input,
|
|||||||
WOLFSSL_START(WC_FUNC_CERTIFICATE_REQUEST_DO);
|
WOLFSSL_START(WC_FUNC_CERTIFICATE_REQUEST_DO);
|
||||||
WOLFSSL_ENTER("DoTls13CertificateRequest");
|
WOLFSSL_ENTER("DoTls13CertificateRequest");
|
||||||
|
|
||||||
|
#ifndef WOLFSSL_TLS13_DRAFT_18
|
||||||
|
XMEMSET(&peerSuites, 0, sizeof(Suites));
|
||||||
|
#endif
|
||||||
#ifdef WOLFSSL_CALLBACKS
|
#ifdef WOLFSSL_CALLBACKS
|
||||||
if (ssl->hsInfoOn) AddPacketName(ssl, "CertificateRequest");
|
if (ssl->hsInfoOn) AddPacketName(ssl, "CertificateRequest");
|
||||||
if (ssl->toInfoOn) AddLateName("CertificateRequest", &ssl->timeoutInfo);
|
if (ssl->toInfoOn) AddLateName("CertificateRequest", &ssl->timeoutInfo);
|
||||||
|
Reference in New Issue
Block a user