Renaming Channel ID Encrypted Extensions. This renames the Channel ID EncryptedExtensions message to allow for compatibility with TLS 1.3 EncryptedExtensions. Change-Id: I5b67d00d548518045554becb1b7213fba86731f2 Reviewed-on: https://boringssl-review.googlesource.com/8040 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/include/openssl/ssl3.h b/include/openssl/ssl3.h index 52e5743..e5f9a89 100644 --- a/include/openssl/ssl3.h +++ b/include/openssl/ssl3.h
@@ -406,7 +406,7 @@ #define SSL3_MT_CERTIFICATE_STATUS 22 #define SSL3_MT_SUPPLEMENTAL_DATA 23 #define SSL3_MT_NEXT_PROTO 67 -#define SSL3_MT_ENCRYPTED_EXTENSIONS 203 +#define SSL3_MT_CHANNEL_ID_ENCRYPTED_EXTENSIONS 203 #define DTLS1_MT_HELLO_VERIFY_REQUEST 3
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 51274f7..bfd948a 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c
@@ -1979,7 +1979,8 @@ !BN_bn2cbb_padded(&child, 32, sig->r) || !BN_bn2cbb_padded(&child, 32, sig->s) || !CBB_finish(&cbb, NULL, &length) || - !ssl_set_handshake_header(ssl, SSL3_MT_ENCRYPTED_EXTENSIONS, length)) { + !ssl_set_handshake_header(ssl, SSL3_MT_CHANNEL_ID_ENCRYPTED_EXTENSIONS, + length)) { OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); CBB_cleanup(&cbb); goto err;
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 1682bb2..9ac1e40 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c
@@ -2120,7 +2120,7 @@ BIGNUM x, y; CBS encrypted_extensions, extension; - n = ssl->method->ssl_get_message(ssl, SSL3_MT_ENCRYPTED_EXTENSIONS, + n = ssl->method->ssl_get_message(ssl, SSL3_MT_CHANNEL_ID_ENCRYPTED_EXTENSIONS, ssl_dont_hash_message, &ok); if (!ok) {