From 38a3073f964d1695913411f4e127468b6f86317e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 3 Feb 2016 15:48:15 +0700 Subject: Add various ExtensionType values --- crypto/src/crypto/tls/ExtensionType.cs | 51 +++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 4 deletions(-) (limited to 'crypto') diff --git a/crypto/src/crypto/tls/ExtensionType.cs b/crypto/src/crypto/tls/ExtensionType.cs index b4b24f7c3..bff9332a0 100644 --- a/crypto/src/crypto/tls/ExtensionType.cs +++ b/crypto/src/crypto/tls/ExtensionType.cs @@ -1,3 +1,5 @@ +using System; + namespace Org.BouncyCastle.Crypto.Tls { public abstract class ExtensionType @@ -17,10 +19,27 @@ namespace Org.BouncyCastle.Crypto.Tls */ public const int user_mapping = 6; + /* + * RFC 5878 + */ + public const int client_authz = 7; + public const int server_authz = 8; + + /* + * RFC RFC6091 + */ + public const int cert_type = 9; + + /* + * draft-ietf-tls-negotiated-ff-dhe-10 + */ + public const int supported_groups = 10; + /* * RFC 4492 5.1. */ - public const int elliptic_curves = 10; + [Obsolete("Use 'supported_groups' instead")] + public const int elliptic_curves = supported_groups; public const int ec_point_formats = 11; /* @@ -43,15 +62,39 @@ namespace Org.BouncyCastle.Crypto.Tls */ public const int heartbeat = 15; + /* + * RFC 7301 + */ + public const int application_layer_protocol_negotiation = 16; + + /* + * RFC 6961 + */ + public const int status_request_v2 = 17; + + /* + * RFC 6962 + */ + public const int signed_certificate_timestamp = 18; + + /* + * RFC 7250 + */ + public const int client_certificate_type = 19; + public const int server_certificate_type = 20; + + /* + * RFC 7685 + */ + public const int padding = 21; + /* * RFC 7366 */ public const int encrypt_then_mac = 22; /* - * draft-ietf-tls-session-hash-04 - * - * NOTE: Early code-point assignment + * RFC 7627 */ public const int extended_master_secret = 23; -- cgit 1.4.1