@@ -5776,7 +5776,7 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
57765776 /* RFC 9147 Section 5.3 / RFC 9001 Section 8.4: DTLS 1.3 and QUIC
57775777 * ServerHello must have empty legacy_session_id_echo. */
57785778 int requireEmptyEcho = 1;
5779- #ifdef WOLFSSL_DTLS13_5_9_0_COMPAT
5779+ #ifdef WOLFSSL_DTLS13_ECHO_LEGACY_SESSION_ID
57805780 /* Compat: a wolfSSL <= 5.9.0 DTLS 1.3 server echoes the client's
57815781 * legacy_session_id; accept any echo. */
57825782 if (ssl->options.dtls)
@@ -6980,7 +6980,7 @@ static int RestartHandshakeHashWithCookie(WOLFSSL* ssl, Cookie* cookie)
69806980
69816981 /* Reconstruct the HelloRetryMessage for handshake hash. */
69826982 sessIdSz = ssl->session->sessionIDSz;
6983- #if defined(WOLFSSL_DTLS13) && !defined(WOLFSSL_DTLS13_5_9_0_COMPAT )
6983+ #if defined(WOLFSSL_DTLS13) && !defined(WOLFSSL_DTLS13_ECHO_LEGACY_SESSION_ID )
69846984 /* RFC 9147 Section 5.3: DTLS 1.3 must use empty legacy_session_id. */
69856985 if (ssl->options.dtls)
69866986 sessIdSz = 0;
@@ -7460,7 +7460,7 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
74607460 if (sessIdSz + args->idx > helloSz)
74617461 ERROR_OUT(BUFFER_ERROR, exit_dch);
74627462
7463- #if defined(WOLFSSL_DTLS13) && !defined(WOLFSSL_DTLS13_5_9_0_COMPAT )
7463+ #if defined(WOLFSSL_DTLS13) && !defined(WOLFSSL_DTLS13_ECHO_LEGACY_SESSION_ID )
74647464 /* RFC 9147 Section 5.3: DTLS 1.3 ServerHello must have empty
74657465 * legacy_session_id_echo. Don't store the client's value so it
74667466 * won't be echoed in SendTls13ServerHello. */
@@ -8065,7 +8065,7 @@ int SendTls13ServerHello(WOLFSSL* ssl, byte extMsgType)
80658065 WOLFSSL_BUFFER(ssl->arrays->serverRandom, RAN_LEN);
80668066#endif
80678067
8068- #if defined(WOLFSSL_DTLS13) && !defined(WOLFSSL_DTLS13_5_9_0_COMPAT )
8068+ #if defined(WOLFSSL_DTLS13) && !defined(WOLFSSL_DTLS13_ECHO_LEGACY_SESSION_ID )
80698069 if (ssl->options.dtls) {
80708070 /* RFC 9147 Section 5.3: DTLS 1.3 ServerHello must have empty
80718071 * legacy_session_id_echo. */
0 commit comments