From e2ab01bcf123ba1cc4be54a04c7e6c9c3bc960d8 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 14 Mar 2023 15:48:37 +0700 Subject: RFC 9146: Add registry entries --- crypto/src/tls/ContentType.cs | 3 +++ crypto/src/tls/ExtensionType.cs | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/crypto/src/tls/ContentType.cs b/crypto/src/tls/ContentType.cs index cf89539c7..fb0a9777f 100644 --- a/crypto/src/tls/ContentType.cs +++ b/crypto/src/tls/ContentType.cs @@ -10,6 +10,7 @@ namespace Org.BouncyCastle.Tls public const short handshake = 22; public const short application_data = 23; public const short heartbeat = 24; + public const short tls12_cid = 25; public static string GetName(short contentType) { @@ -25,6 +26,8 @@ namespace Org.BouncyCastle.Tls return "handshake"; case heartbeat: return "heartbeat"; + case tls12_cid: + return "tls12_cid"; default: return "UNKNOWN"; } diff --git a/crypto/src/tls/ExtensionType.cs b/crypto/src/tls/ExtensionType.cs index a1f1fa7e8..f879bd6e1 100644 --- a/crypto/src/tls/ExtensionType.cs +++ b/crypto/src/tls/ExtensionType.cs @@ -135,6 +135,11 @@ namespace Org.BouncyCastle.Tls public const int signature_algorithms_cert = 50; public const int key_share = 51; + /* + * RFC 9146 + */ + public const int connection_id = 54; + /* * RFC 5746 3.2. */ @@ -222,6 +227,8 @@ namespace Org.BouncyCastle.Tls return "signature_algorithms_cert"; case key_share: return "key_share"; + case connection_id: + return "connection_id"; case renegotiation_info: return "renegotiation_info"; default: @@ -277,6 +284,7 @@ namespace Org.BouncyCastle.Tls case post_handshake_auth: case signature_algorithms_cert: case key_share: + case connection_id: case renegotiation_info: return true; default: -- cgit 1.4.1