From b9e7dea082fa78d4d9551c69cd1c134df0ad75ab Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 9 Apr 2019 15:22:03 +0100 Subject: [PATCH] Add dummy implementations for CID API --- library/ssl_tls.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 38690fa66..f9b3ad136 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -109,6 +109,33 @@ static void ssl_update_in_pointers( mbedtls_ssl_context *ssl, #if defined(MBEDTLS_SSL_PROTO_DTLS) +/* Top-level Connection ID API */ + +int mbedtls_ssl_set_cid( mbedtls_ssl_context *ssl, + int enable, + unsigned char const *own_cid, + size_t own_cid_len ) +{ + ((void) ssl); + ((void) enable); + ((void) own_cid); + ((void) own_cid_len); + return( 0 ); +} + +int mbedtls_ssl_get_peer_cid( mbedtls_ssl_context *ssl, + int *enabled, + unsigned char peer_cid[ MBEDTLS_SSL_CID_OUT_LEN_MAX ], + size_t *peer_cid_len ) +{ + ((void) ssl); + ((void) peer_cid); + ((void) peer_cid_len); + + *enabled = MBEDTLS_SSL_CID_DISABLED; + return( 0 ); +} + /* Forward declarations for functions related to message buffering. */ static void ssl_buffering_free( mbedtls_ssl_context *ssl ); static void ssl_buffering_free_slot( mbedtls_ssl_context *ssl,