summary refs log tree commit diff
path: root/crypto/src/tls/HandshakeType.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-03-02 16:36:48 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-03-02 16:36:48 +0700
commit0db55f1b5e2dbed6bc774432be7172abe3daa1e4 (patch)
treec7a1a71ab6e6f37037a41c1ccfd813f2b1793468 /crypto/src/tls/HandshakeType.cs
parentFurther GCM updates (diff)
downloadBouncyCastle.NET-ed25519-0db55f1b5e2dbed6bc774432be7172abe3daa1e4.tar.xz
RFC 8879 preliminaries
Diffstat (limited to 'crypto/src/tls/HandshakeType.cs')
-rw-r--r--crypto/src/tls/HandshakeType.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/tls/HandshakeType.cs b/crypto/src/tls/HandshakeType.cs

index 563cd1150..ad2c29c07 100644 --- a/crypto/src/tls/HandshakeType.cs +++ b/crypto/src/tls/HandshakeType.cs
@@ -44,6 +44,11 @@ namespace Org.BouncyCastle.Tls public const short key_update = 24; public const short message_hash = 254; + /* + * RFC 8879 + */ + public const short compressed_certificate = 25; + public static string GetName(short handshakeType) { switch (handshakeType) @@ -88,6 +93,8 @@ namespace Org.BouncyCastle.Tls return "key_update"; case message_hash: return "message_hash"; + case compressed_certificate: + return "compressed_certificate"; default: return "UNKNOWN"; } @@ -122,6 +129,7 @@ namespace Org.BouncyCastle.Tls case encrypted_extensions: case key_update: case message_hash: + case compressed_certificate: return true; default: return false;