From 7cd18b2318fd14166d4e7af4b32852a41cf64e64 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 7 May 2016 18:33:54 +0700 Subject: Add CertificateType constants to (D)TLS --- crypto/src/crypto/tls/CertificateType.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 crypto/src/crypto/tls/CertificateType.cs (limited to 'crypto/src') diff --git a/crypto/src/crypto/tls/CertificateType.cs b/crypto/src/crypto/tls/CertificateType.cs new file mode 100644 index 000000000..47ec05c80 --- /dev/null +++ b/crypto/src/crypto/tls/CertificateType.cs @@ -0,0 +1,18 @@ +using System; + +namespace Org.BouncyCastle.Crypto.Tls +{ + /** + * RFC 6091 + */ + public class CertificateType + { + public const byte X509 = 0; + public const byte OpenPGP = 1; + + /* + * RFC 7250 + */ + public const byte RawPublicKey = 2; + } +} -- cgit 1.5.1