From 56404d70c4f8e635b2ac238bce24db3880662623 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Wed, 30 Mar 2022 17:36:13 +0800 Subject: [PATCH] tls13:server:Add finalize write_server_hello and dummy body Signed-off-by: Jerry Yu --- library/ssl_tls13_server.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 8254e9d1a..ccc66a946 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -759,6 +759,21 @@ static int ssl_tls13_prepare_server_hello( mbedtls_ssl_context *ssl ) return( ret ); } +static int ssl_tls13_write_client_hello_body( mbedtls_ssl_context *ssl, + unsigned char *buf, + unsigned char *end, + size_t *out_len ) +{ + return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE ); +} + + +static int ssl_tls13_finalize_server_hello( mbedtls_ssl_context *ssl ) +{ + mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_ENCRYPTED_EXTENSIONS ); + return( 0 ); +} + static int ssl_tls13_write_server_hello( mbedtls_ssl_context *ssl ) { int ret = 0;