Skip to content

Commit 42581e4

Browse files
authored
Merge pull request #9982 from julek-wolfssl/DoTls13CertificateRequest-certsetup
DoTls13CertificateRequest: call CertSetupCbWrapper only once
2 parents e642d57 + 2051297 commit 42581e4

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
@@ -5877,11 +5877,6 @@ static int DoTls13CertificateRequest(WOLFSSL* ssl, const byte* input,
58775877
if (ssl->toInfoOn) AddLateName("CertificateRequest", &ssl->timeoutInfo);
58785878
#endif
58795879

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

@@ -5926,7 +5921,7 @@ static int DoTls13CertificateRequest(WOLFSSL* ssl, const byte* input,
59265921
}
59275922
*inOutIdx += len;
59285923

5929-
#ifdef OPENSSL_EXTRA
5924+
#ifdef WOLFSSL_CERT_SETUP_CB
59305925
if ((ret = CertSetupCbWrapper(ssl)) != 0)
59315926
return ret;
59325927
#endif

0 commit comments

Comments
 (0)