Skip to content

Commit cc65315

Browse files
committed
Ci Fix
1 parent 02515fc commit cc65315

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/internal.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10720,7 +10720,9 @@ static void AddRecordHeader(byte* output, word32 length, byte type,
1072010720

1072110721

1072210722
#if !defined(WOLFSSL_NO_TLS12) || (defined(HAVE_SESSION_TICKET) && \
10723-
!defined(NO_WOLFSSL_SERVER))
10723+
!defined(NO_WOLFSSL_SERVER)) || \
10724+
defined(HAVE_CERTIFICATE_STATUS_REQUEST) || \
10725+
defined(HAVE_CERTIFICATE_STATUS_REQUEST_V2) || !defined(NO_CERTS)
1072410726
/* add handshake header for message */
1072510727
static void AddHandShakeHeader(byte* output, word32 length,
1072610728
word32 fragOffset, word32 fragLength,
@@ -10755,7 +10757,7 @@ static void AddHandShakeHeader(byte* output, word32 length,
1075510757
}
1075610758

1075710759
/* add both headers for handshake message */
10758-
static void AddHeaders(byte* output, word32 length, byte type, WOLFSSL* ssl)
10760+
WC_MAYBE_UNUSED static void AddHeaders(byte* output, word32 length, byte type, WOLFSSL* ssl)
1075910761
{
1076010762
word32 lengthAdj = HANDSHAKE_HEADER_SZ;
1076110763
word32 outputAdj = RECORD_HEADER_SZ;
@@ -10770,10 +10772,12 @@ static void AddHeaders(byte* output, word32 length, byte type, WOLFSSL* ssl)
1077010772
AddRecordHeader(output, length + lengthAdj, handshake, ssl, CUR_ORDER);
1077110773
AddHandShakeHeader(output + outputAdj, length, 0, length, type, ssl);
1077210774
}
10773-
#endif /* !WOLFSSL_NO_TLS12 || (HAVE_SESSION_TICKET && !NO_WOLFSSL_SERVER) */
10775+
#endif /* !WOLFSSL_NO_TLS12 || (HAVE_SESSION_TICKET && !NO_WOLFSSL_SERVER) ||
10776+
* HAVE_CERTIFICATE_STATUS_REQUEST ||
10777+
* HAVE_CERTIFICATE_STATUS_REQUEST_V2 || !NO_CERTS */
1077410778

1077510779

10776-
#ifndef WOLFSSL_NO_TLS12
10780+
#if !defined(WOLFSSL_NO_TLS12) || (defined(WOLFSSL_DTLS) && defined(WOLFSSL_TLS13))
1077710781
WC_MAYBE_UNUSED static void AddFragHeaders(byte* output, word32 fragSz,
1077810782
word32 fragOffset, word32 length, byte type, WOLFSSL* ssl)
1077910783
{
@@ -10791,7 +10795,7 @@ WC_MAYBE_UNUSED static void AddFragHeaders(byte* output, word32 fragSz,
1079110795
AddRecordHeader(output, fragSz + lengthAdj, handshake, ssl, CUR_ORDER);
1079210796
AddHandShakeHeader(output + outputAdj, length, fragOffset, fragSz, type, ssl);
1079310797
}
10794-
#endif /* !WOLFSSL_NO_TLS12 */
10798+
#endif /* !WOLFSSL_NO_TLS12 || (WOLFSSL_DTLS && WOLFSSL_TLS13) */
1079510799

1079610800
/**
1079710801
* Send the handshake message. This function handles fragmenting the message

0 commit comments

Comments
 (0)