Skip to content

Commit 2051297

Browse files
committed
DoTls13CertificateRequest: call CertSetupCbWrapper only once
1 parent 7ad9c25 commit 2051297

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/tls13.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5876,11 +5876,6 @@ static int DoTls13CertificateRequest(WOLFSSL* ssl, const byte* input,
58765876
if (ssl->toInfoOn) AddLateName("CertificateRequest", &ssl->timeoutInfo);
58775877
#endif
58785878

5879-
#ifdef WOLFSSL_CERT_SETUP_CB
5880-
if ((ret = CertSetupCbWrapper(ssl)) != 0)
5881-
return ret;
5882-
#endif
5883-
58845879
if (OPAQUE8_LEN > size)
58855880
return BUFFER_ERROR;
58865881

@@ -5925,7 +5920,7 @@ static int DoTls13CertificateRequest(WOLFSSL* ssl, const byte* input,
59255920
}
59265921
*inOutIdx += len;
59275922

5928-
#ifdef OPENSSL_EXTRA
5923+
#ifdef WOLFSSL_CERT_SETUP_CB
59295924
if ((ret = CertSetupCbWrapper(ssl)) != 0)
59305925
return ret;
59315926
#endif

0 commit comments

Comments
 (0)