Skip to content

Commit 1555ec4

Browse files
committed
Replace XMEMCMP with ConstantCompare when validating secure renegotiation (SCR) verify data
F-16
1 parent 8093875 commit 1555ec4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6047,7 +6047,7 @@ static int TLSX_SecureRenegotiation_Parse(WOLFSSL* ssl, const byte* input,
60476047
input++; /* get past size */
60486048

60496049
/* validate client verify data */
6050-
if (XMEMCMP(input,
6050+
if (ConstantCompare(input,
60516051
ssl->secure_renegotiation->client_verify_data,
60526052
TLS_FINISHED_SZ) == 0) {
60536053
WOLFSSL_MSG("SCR client verify data match");
@@ -6075,10 +6075,10 @@ static int TLSX_SecureRenegotiation_Parse(WOLFSSL* ssl, const byte* input,
60756075
input++; /* get past size */
60766076

60776077
/* validate client and server verify data */
6078-
if (XMEMCMP(input,
6078+
if (ConstantCompare(input,
60796079
ssl->secure_renegotiation->client_verify_data,
60806080
TLS_FINISHED_SZ) == 0 &&
6081-
XMEMCMP(input + TLS_FINISHED_SZ,
6081+
ConstantCompare(input + TLS_FINISHED_SZ,
60826082
ssl->secure_renegotiation->server_verify_data,
60836083
TLS_FINISHED_SZ) == 0) {
60846084
WOLFSSL_MSG("SCR client and server verify data match");

0 commit comments

Comments
 (0)