Add CertificateType constants to (D)TLS
5 files changed, 26 insertions, 0 deletions
diff --git a/crypto/BouncyCastle.Android.csproj b/crypto/BouncyCastle.Android.csproj
index 309298614..13ca4f05c 100644
--- a/crypto/BouncyCastle.Android.csproj
+++ b/crypto/BouncyCastle.Android.csproj
@@ -963,6 +963,7 @@
<Compile Include="src\crypto\tls\CertificateStatus.cs" />
<Compile Include="src\crypto\tls\CertificateStatusRequest.cs" />
<Compile Include="src\crypto\tls\CertificateStatusType.cs" />
+ <Compile Include="src\crypto\tls\CertificateType.cs" />
<Compile Include="src\crypto\tls\CertificateUrl.cs" />
<Compile Include="src\crypto\tls\Chacha20Poly1305.cs" />
<Compile Include="src\crypto\tls\ChangeCipherSpec.cs" />
diff --git a/crypto/BouncyCastle.csproj b/crypto/BouncyCastle.csproj
index 90c067007..f72c9c527 100644
--- a/crypto/BouncyCastle.csproj
+++ b/crypto/BouncyCastle.csproj
@@ -957,6 +957,7 @@
<Compile Include="src\crypto\tls\CertificateStatus.cs" />
<Compile Include="src\crypto\tls\CertificateStatusRequest.cs" />
<Compile Include="src\crypto\tls\CertificateStatusType.cs" />
+ <Compile Include="src\crypto\tls\CertificateType.cs" />
<Compile Include="src\crypto\tls\CertificateUrl.cs" />
<Compile Include="src\crypto\tls\Chacha20Poly1305.cs" />
<Compile Include="src\crypto\tls\ChangeCipherSpec.cs" />
diff --git a/crypto/BouncyCastle.iOS.csproj b/crypto/BouncyCastle.iOS.csproj
index 88fb1747e..b3bf7b4fa 100644
--- a/crypto/BouncyCastle.iOS.csproj
+++ b/crypto/BouncyCastle.iOS.csproj
@@ -958,6 +958,7 @@
<Compile Include="src\crypto\tls\CertificateStatus.cs" />
<Compile Include="src\crypto\tls\CertificateStatusRequest.cs" />
<Compile Include="src\crypto\tls\CertificateStatusType.cs" />
+ <Compile Include="src\crypto\tls\CertificateType.cs" />
<Compile Include="src\crypto\tls\CertificateUrl.cs" />
<Compile Include="src\crypto\tls\Chacha20Poly1305.cs" />
<Compile Include="src\crypto\tls\ChangeCipherSpec.cs" />
diff --git a/crypto/crypto.csproj b/crypto/crypto.csproj
index 580aa7390..fcb52bb20 100644
--- a/crypto/crypto.csproj
+++ b/crypto/crypto.csproj
@@ -4674,6 +4674,11 @@
BuildAction = "Compile"
/>
<File
+ RelPath = "src\crypto\tls\CertificateType.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "src\crypto\tls\CertificateUrl.cs"
SubType = "Code"
BuildAction = "Compile"
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;
+ }
+}
|