Guard CID implementations by MBEDTLS_SSL_CID
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index a22437a..5046475 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -118,6 +118,7 @@
 
 #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!
@@ -150,6 +151,7 @@
     *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 );