From 7c91705e21b9a39116c7bf0c4ef6e1a357cd7751 Mon Sep 17 00:00:00 2001 From: XiaokangQian Date: Mon, 25 Oct 2021 06:17:12 +0000 Subject: [PATCH] Remove support for MBEDTLS_SSL_EXPORT_KEYS Signed-off-by: XiaokangQian --- library/ssl_tls13_keys.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c index 85026f5384..54a9275284 100644 --- a/library/ssl_tls13_keys.c +++ b/library/ssl_tls13_keys.c @@ -1185,28 +1185,6 @@ int mbedtls_ssl_tls1_3_generate_application_keys( app_secrets->server_application_traffic_secret_N, md_size ); - /* - * Export client/server application traffic secret 0 - */ -#if defined(MBEDTLS_SSL_EXPORT_KEYS) - if( ssl->f_export_keys != NULL ) - { - ssl->f_export_keys( ssl->p_export_keys, - MBEDTLS_SSL_KEY_EXPORT_TLS13_CLIENT_APPLICATION_TRAFFIC_SECRET, - app_secrets->client_application_traffic_secret_N, md_size, - ssl->handshake->randbytes + 32, - ssl->handshake->randbytes, - MBEDTLS_SSL_TLS_PRF_NONE /* TODO: FIX! */ ); - - ssl->f_export_keys( ssl->p_export_keys, - MBEDTLS_SSL_KEY_EXPORT_TLS13_SERVER_APPLICATION_TRAFFIC_SECRET, - app_secrets->server_application_traffic_secret_N, md_size, - ssl->handshake->randbytes + 32, - ssl->handshake->randbytes, - MBEDTLS_SSL_TLS_PRF_NONE /* TODO: FIX! */ ); - } -#endif /* MBEDTLS_SSL_EXPORT_KEYS */ - MBEDTLS_SSL_DEBUG_BUF( 4, "client application_write_key:", traffic_keys->client_write_key, keylen ); MBEDTLS_SSL_DEBUG_BUF( 4, "server application write key",