diff --git a/include/mbedtls/compat-1.3.h b/include/mbedtls/compat-1.3.h index 8b85656f0..26439c77f 100644 --- a/include/mbedtls/compat-1.3.h +++ b/include/mbedtls/compat-1.3.h @@ -2443,7 +2443,7 @@ #define ssl_hw_record_write mbedtls_ssl_hw_record_write #define ssl_init mbedtls_ssl_init #define ssl_key_cert mbedtls_ssl_key_cert -#define ssl_legacy_renegotiation mbedtls_ssl_legacy_renegotiation +#define ssl_legacy_renegotiation mbedtls_set_ssl_legacy_renegotiation #define ssl_list_ciphersuites mbedtls_ssl_list_ciphersuites #define ssl_md_alg_from_hash mbedtls_ssl_md_alg_from_hash #define ssl_optimize_checksum mbedtls_ssl_optimize_checksum diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 4c1f68529..6ab2dd2e9 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -1962,7 +1962,7 @@ void mbedtls_ssl_set_renegotiation( mbedtls_ssl_config *conf, int renegotiation * SSL_ALLOW_LEGACY_RENEGOTIATION or * MBEDTLS_SSL_LEGACY_BREAK_HANDSHAKE) */ -void mbedtls_ssl_legacy_renegotiation( mbedtls_ssl_config *conf, int allow_legacy ); +void mbedtls_set_ssl_legacy_renegotiation( mbedtls_ssl_config *conf, int allow_legacy ); #if defined(MBEDTLS_SSL_RENEGOTIATION) /** diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 72bbbd7fb..c0f52925d 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -5609,7 +5609,7 @@ void mbedtls_ssl_set_cbc_record_splitting( mbedtls_ssl_config *conf, char split } #endif -void mbedtls_ssl_legacy_renegotiation( mbedtls_ssl_config *conf, int allow_legacy ) +void mbedtls_set_ssl_legacy_renegotiation( mbedtls_ssl_config *conf, int allow_legacy ) { conf->allow_legacy_renegotiation = allow_legacy; } diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 27d87cb0d..897c17e76 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1145,7 +1145,7 @@ int main( int argc, char *argv[] ) mbedtls_ssl_set_arc4_support( &conf, opt.arc4 ); if( opt.allow_legacy != DFL_ALLOW_LEGACY ) - mbedtls_ssl_legacy_renegotiation( &conf, opt.allow_legacy ); + mbedtls_set_ssl_legacy_renegotiation( &conf, opt.allow_legacy ); #if defined(MBEDTLS_SSL_RENEGOTIATION) mbedtls_ssl_set_renegotiation( &conf, opt.renegotiation ); #endif diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 17aa9ff9f..68fc81eb1 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -1664,7 +1664,7 @@ int main( int argc, char *argv[] ) } if( opt.allow_legacy != DFL_ALLOW_LEGACY ) - mbedtls_ssl_legacy_renegotiation( &conf, opt.allow_legacy ); + mbedtls_set_ssl_legacy_renegotiation( &conf, opt.allow_legacy ); #if defined(MBEDTLS_SSL_RENEGOTIATION) mbedtls_ssl_set_renegotiation( &conf, opt.renegotiation ); diff --git a/scripts/data_files/rename-1.3-2.0.txt b/scripts/data_files/rename-1.3-2.0.txt index 9ae06ae25..431e1bea7 100644 --- a/scripts/data_files/rename-1.3-2.0.txt +++ b/scripts/data_files/rename-1.3-2.0.txt @@ -1969,7 +1969,7 @@ ssl_hw_record_reset mbedtls_ssl_hw_record_reset ssl_hw_record_write mbedtls_ssl_hw_record_write ssl_init mbedtls_ssl_init ssl_key_cert mbedtls_ssl_key_cert -ssl_legacy_renegotiation mbedtls_ssl_legacy_renegotiation +ssl_legacy_renegotiation mbedtls_set_ssl_legacy_renegotiation ssl_list_ciphersuites mbedtls_ssl_list_ciphersuites ssl_md_alg_from_hash mbedtls_ssl_md_alg_from_hash ssl_optimize_checksum mbedtls_ssl_optimize_checksum