From ebcc9137ca8ce33e6868be9c72f5d9dc2afe97ac Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 15 May 2019 10:26:32 +0100 Subject: [PATCH] Consistently reference CID draft through name + URL --- include/mbedtls/config.h | 3 ++- include/mbedtls/ssl.h | 7 ++++--- library/ssl_cli.c | 4 ++-- library/ssl_srv.c | 8 ++++---- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 061f9af32..e0583c2d4 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -1330,7 +1330,8 @@ * \def MBEDTLS_SSL_CID * * Enable support for the DTLS Connection ID extension - * (version draft-ietf-tls-dtls-connection-id-05) + * (version draft-ietf-tls-dtls-connection-id-05, + * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05) * which allows to identify DTLS connections across changes * in the underlying transport. * diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 71b961964..43caa1c21 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -393,7 +393,8 @@ #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. */ + * draft-ietf-tls-dtls-connection-id-05 + * (https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05) */ #define MBEDTLS_TLS_EXT_CID 254 /* TBD */ #define MBEDTLS_TLS_EXT_ECJPAKE_KKPP 256 /* experimental */ @@ -1540,8 +1541,8 @@ void mbedtls_ssl_set_bio( mbedtls_ssl_context *ssl, * \brief Configure the use of the Connection ID (CID) * extension in the next handshake. * - * Reference: - * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-04 + * Reference: draft-ietf-tls-dtls-connection-id-05 + * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05 * * The DTLS CID extension allows the reliable association of * DTLS records to DTLS connections across changes in the diff --git a/library/ssl_cli.c b/library/ssl_cli.c index e2d8a275e..e5110f40c 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -485,8 +485,8 @@ static void ssl_write_cid_ext( mbedtls_ssl_context *ssl, const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_OUT_CONTENT_LEN; /* - * Quoting - * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05: + * Quoting draft-ietf-tls-dtls-connection-id-05 + * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05 * * struct { * opaque cid<0..2^8-1>; diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 1639d70da..268973dfa 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -492,8 +492,8 @@ static int ssl_parse_cid_ext( mbedtls_ssl_context *ssl, } /* - * Quoting - * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05: + * Quoting draft-ietf-tls-dtls-connection-id-05 + * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05 * * struct { * opaque cid<0..2^8-1>; @@ -2209,8 +2209,8 @@ static void ssl_write_cid_ext( mbedtls_ssl_context *ssl, MBEDTLS_SSL_DEBUG_MSG( 3, ( "server hello, adding CID extension" ) ); /* - * Quoting - * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05: + * Quoting draft-ietf-tls-dtls-connection-id-05 + * https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05 * * struct { * opaque cid<0..2^8-1>;