From b51f8841c42864e39b7eba4f7e68c52c751ed26a Mon Sep 17 00:00:00 2001 From: XiaokangQian Date: Thu, 4 Nov 2021 03:02:47 +0000 Subject: [PATCH] Change comments for export_keys callback Signed-off-by: XiaokangQian --- library/ssl_tls13_keys.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c index b97a70f29..1f0dd8a84 100644 --- a/library/ssl_tls13_keys.c +++ b/library/ssl_tls13_keys.c @@ -1199,14 +1199,16 @@ int mbedtls_ssl_tls1_3_generate_application_keys( app_secrets->client_application_traffic_secret_N, md_size, ssl->handshake->randbytes + 32, ssl->handshake->randbytes, - MBEDTLS_SSL_TLS_PRF_NONE /* TODO: FIX! */ ); + MBEDTLS_SSL_TLS_PRF_NONE /* TODO: this should be replaced by + a new constant for TLS 1.3! */ ); 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! */ ); + MBEDTLS_SSL_TLS_PRF_NONE /* TODO: this should be replaced by + a new constant for TLS 1.3! */ ); } MBEDTLS_SSL_DEBUG_BUF( 4, "client application_write_key:",