(SSL) Make these functions unique
This commit is contained in:
parent
93af9baf48
commit
e83504002d
|
@ -1057,7 +1057,7 @@ static int ssl_write_client_hello( mbedtls_ssl_context *ssl )
|
||||||
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
|
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
|
#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
|
||||||
static int ssl_parse_truncated_hmac_ext( mbedtls_ssl_context *ssl,
|
static int ssl_cli_parse_truncated_hmac_ext( mbedtls_ssl_context *ssl,
|
||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
size_t len )
|
size_t len )
|
||||||
{
|
{
|
||||||
|
@ -1720,7 +1720,7 @@ static int ssl_parse_server_hello( mbedtls_ssl_context *ssl )
|
||||||
case MBEDTLS_TLS_EXT_TRUNCATED_HMAC:
|
case MBEDTLS_TLS_EXT_TRUNCATED_HMAC:
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 3, ( "found truncated_hmac extension" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "found truncated_hmac extension" ) );
|
||||||
|
|
||||||
if( ( ret = ssl_parse_truncated_hmac_ext( ssl,
|
if( ( ret = ssl_cli_parse_truncated_hmac_ext( ssl,
|
||||||
ext + 4, ext_size ) ) != 0 )
|
ext + 4, ext_size ) ) != 0 )
|
||||||
{
|
{
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
|
@ -369,7 +369,7 @@ static int ssl_parse_ecjpake_kkpp( mbedtls_ssl_context *ssl,
|
||||||
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
|
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
|
#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
|
||||||
static int ssl_parse_truncated_hmac_ext( mbedtls_ssl_context *ssl,
|
static int ssl_srv_parse_truncated_hmac_ext( mbedtls_ssl_context *ssl,
|
||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
size_t len )
|
size_t len )
|
||||||
{
|
{
|
||||||
|
@ -1701,7 +1701,7 @@ read_record_header:
|
||||||
case MBEDTLS_TLS_EXT_TRUNCATED_HMAC:
|
case MBEDTLS_TLS_EXT_TRUNCATED_HMAC:
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 3, ( "found truncated hmac extension" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 3, ( "found truncated hmac extension" ) );
|
||||||
|
|
||||||
ret = ssl_parse_truncated_hmac_ext( ssl, ext + 4, ext_size );
|
ret = ssl_srv_parse_truncated_hmac_ext( ssl, ext + 4, ext_size );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue