summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-14 15:48:37 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-13 17:16:19 +0700
commite2ab01bcf123ba1cc4be54a04c7e6c9c3bc960d8 (patch)
tree773e088cbf7631bd959db786f11a2878aead890b
parentRefactoring around AeadParameters and ParametersWIthIV (diff)
downloadBouncyCastle.NET-ed25519-e2ab01bcf123ba1cc4be54a04c7e6c9c3bc960d8.tar.xz
RFC 9146: Add registry entries
-rw-r--r--crypto/src/tls/ContentType.cs3
-rw-r--r--crypto/src/tls/ExtensionType.cs8
2 files changed, 11 insertions, 0 deletions
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
@@ -136,6 +136,11 @@ namespace Org.BouncyCastle.Tls public const int key_share = 51; /* + * RFC 9146 + */ + public const int connection_id = 54; + + /* * RFC 5746 3.2. */ public const int renegotiation_info = 0xff01; @@ -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: