mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 22:20:30 +00:00
Change dummy extension return
With error return, server can not receive Client Hello message. If received , we can test current status. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
3c28fd3393
commit
7533635e5a
@ -101,8 +101,9 @@ static int ssl_tls13_write_supported_groups_ext( mbedtls_ssl_context *ssl,
|
|||||||
((void) ssl);
|
((void) ssl);
|
||||||
((void) buf);
|
((void) buf);
|
||||||
((void) end);
|
((void) end);
|
||||||
((void) olen);
|
*olen = 0;
|
||||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "supported groups extension is not available" ) );
|
||||||
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
|
static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
|
||||||
@ -113,8 +114,9 @@ static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
|
|||||||
((void) ssl);
|
((void) ssl);
|
||||||
((void) buf);
|
((void) buf);
|
||||||
((void) end);
|
((void) end);
|
||||||
((void) olen);
|
*olen = 0;
|
||||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "key share extension is not available" ) );
|
||||||
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
@ -24,9 +24,11 @@
|
|||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
|
||||||
|
|
||||||
#include "mbedtls/error.h"
|
#include "mbedtls/error.h"
|
||||||
|
#include "mbedtls/debug.h"
|
||||||
|
|
||||||
#include "ssl_misc.h"
|
#include "ssl_misc.h"
|
||||||
|
|
||||||
|
|
||||||
int mbedtls_ssl_tls13_start_handshake_msg( mbedtls_ssl_context *ssl,
|
int mbedtls_ssl_tls13_start_handshake_msg( mbedtls_ssl_context *ssl,
|
||||||
unsigned hs_type,
|
unsigned hs_type,
|
||||||
unsigned char **buf,
|
unsigned char **buf,
|
||||||
@ -108,8 +110,9 @@ int mbedtls_ssl_tls13_write_sig_alg_ext( mbedtls_ssl_context *ssl,
|
|||||||
((void) ssl);
|
((void) ssl);
|
||||||
((void) buf);
|
((void) buf);
|
||||||
((void) end);
|
((void) end);
|
||||||
((void) olen);
|
*olen = 0;
|
||||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "signature_algorithm extension is not available" ) );
|
||||||
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user