Merge pull request #8440 from yuhaoth/pr/fix-missing-pre_shared_key-ext-sent-mask

Fix missing pre shared key ext sent mask
This commit is contained in:
Gilles Peskine 2023-11-22 16:40:12 +00:00 committed by GitHub
commit 3f5e1e81b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -691,11 +691,6 @@ static int ssl_write_client_hello_body(mbedtls_ssl_context *ssl,
p_extensions_len, extensions_len); p_extensions_len, extensions_len);
} }
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
MBEDTLS_SSL_PRINT_EXTS(
3, MBEDTLS_SSL_HS_CLIENT_HELLO, handshake->sent_extensions);
#endif
*out_len = p - buf; *out_len = p - buf;
return 0; return 0;
} }
@ -1006,6 +1001,11 @@ int mbedtls_ssl_write_client_hello(mbedtls_ssl_context *ssl)
#endif #endif
} }
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
MBEDTLS_SSL_PRINT_EXTS(
3, MBEDTLS_SSL_HS_CLIENT_HELLO, ssl->handshake->sent_extensions);
#endif
cleanup: cleanup:
MBEDTLS_SSL_DEBUG_MSG(2, ("<= write client hello")); MBEDTLS_SSL_DEBUG_MSG(2, ("<= write client hello"));