-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile when few options are set #292
base: tls13-prototype
Are you sure you want to change the base?
Changes from 6 commits
36ec614
254cd13
dc435d5
ac028ba
f097d1c
b574b6f
253cb43
51494a6
bb68856
4d5c3a8
45c0489
b3817fa
4fe4636
662be8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,10 +176,13 @@ int ssl_write_early_data_process( mbedtls_ssl_context* ssl ) | |
#endif /* MBEDTLS_SSL_USE_MPS */ | ||
|
||
#else /* MBEDTLS_ZERO_RTT */ | ||
#if defined(MBEDTLS_SSL_USE_MPS) | ||
((void) buf); | ||
((void) buf_len); | ||
((void) msg); | ||
((void) msg_len); | ||
#endif /* MBEDTLS_SSL_USE_MPS */ | ||
|
||
/* Should never happen */ | ||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR ); | ||
|
||
|
@@ -2725,6 +2728,9 @@ static int ssl_encrypted_extensions_parse( mbedtls_ssl_context* ssl, | |
size_t ext_len; | ||
const unsigned char *ext; | ||
|
||
/* ssl structure is not used when ALPN, 0RTT, and MFL extensions are not used. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment should be replaced by the appropriate compile-time guard. |
||
((void) ssl); | ||
|
||
if( buflen < 2 ) | ||
{ | ||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "EncryptedExtension message too short" ) ); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2269,6 +2269,10 @@ static int ssl_client_hello_fetch( mbedtls_ssl_context* ssl, | |
|
||
static void ssl_debug_print_client_hello_exts( mbedtls_ssl_context *ssl ) | ||
{ | ||
#if !defined(MBEDTLS_DEBUG_C) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ISTM that the entire function could be guarded by |
||
((void) ssl); | ||
#endif | ||
|
||
MBEDTLS_SSL_DEBUG_MSG( 3, ( "Supported Extensions:" ) ); | ||
MBEDTLS_SSL_DEBUG_MSG( 3, ( "- KEY_SHARE_EXTENSION ( %s )", | ||
( ( ssl->handshake->extensions_present & MBEDTLS_SSL_EXT_KEY_SHARE ) > 0 ) ? | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ISTM that we should rather guard the declarations of
buf, buf_len, ...
byMBEDTLS_SSL_USE_MPS && MBEDTLS_ZERO_RTT
.