From 08556bf8fb6a81a001b2ae9e016ca0df8b82163e Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 3 May 2019 12:43:44 +0100 Subject: [PATCH] Improve structure of ssl_parse_cid_ext() Group configuring CID values together. --- library/ssl_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 7386e8de1..51340b443 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -536,13 +536,13 @@ static int ssl_parse_cid_ext( mbedtls_ssl_context *ssl, return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO ); } + ssl->handshake->cid_in_use = MBEDTLS_SSL_CID_ENABLED; ssl->handshake->peer_cid_len = (uint8_t) peer_cid_len; memcpy( ssl->handshake->peer_cid, buf, peer_cid_len ); MBEDTLS_SSL_DEBUG_MSG( 3, ( "Use of CID extension negotiated" ) ); MBEDTLS_SSL_DEBUG_BUF( 3, "Client CID", buf, peer_cid_len ); - ssl->handshake->cid_in_use = MBEDTLS_SSL_CID_ENABLED; return( 0 ); } #endif /* MBEDTLS_SSL_CID */