From ba8cd67467cf2ec128026f22e1e52a17a7812a7b Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 23 Apr 2019 12:31:42 +0100 Subject: [PATCH] Guard CID implementations by MBEDTLS_SSL_CID --- library/ssl_tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 71ef949ea..a8c140cbe 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -109,6 +109,7 @@ static void ssl_update_in_pointers( mbedtls_ssl_context *ssl, #if defined(MBEDTLS_SSL_PROTO_DTLS) +#if defined(MBEDTLS_SSL_CID) /* Top-level Connection ID API */ /* WARNING: This implementation is a stub and doesn't do anything! @@ -141,6 +142,7 @@ int mbedtls_ssl_get_peer_cid( mbedtls_ssl_context *ssl, *enabled = MBEDTLS_SSL_CID_DISABLED; return( 0 ); } +#endif /* MBEDTLS_SSL_CID */ /* Forward declarations for functions related to message buffering. */ static void ssl_buffering_free( mbedtls_ssl_context *ssl );