From 0652bc50c76c5ab6cc6e37afa5a05c5c1f023c4c Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 25 Apr 2019 16:24:57 +0100 Subject: [PATCH] Add identifier for CID extension Note: The current draft https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-04 does not yet specify the extension value, so we use a temporary value of 42. --- include/mbedtls/ssl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 494f8c282..b45ceb3d4 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -386,6 +386,10 @@ #define MBEDTLS_TLS_EXT_SESSION_TICKET 35 +/* The value of the CID extension is still TBD as of + * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-04. */ +#define MBEDTLS_TLS_EXT_CID 42 /* TBD */ + #define MBEDTLS_TLS_EXT_ECJPAKE_KKPP 256 /* experimental */ #define MBEDTLS_TLS_EXT_RENEGOTIATION_INFO 0xFF01