diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2016-05-07 18:33:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2016-05-07 18:33:54 +0700 |
commit | 7cd18b2318fd14166d4e7af4b32852a41cf64e64 (patch) | |
tree | b5105ddd4cf07c0c27591c01ec339e5d56ef9830 /crypto | |
parent | Port of improved app data splitting support from Java (diff) | |
download | BouncyCastle.NET-ed25519-7cd18b2318fd14166d4e7af4b32852a41cf64e64.tar.xz |
Add CertificateType constants to (D)TLS
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/BouncyCastle.Android.csproj | 1 | ||||
-rw-r--r-- | crypto/BouncyCastle.csproj | 1 | ||||
-rw-r--r-- | crypto/BouncyCastle.iOS.csproj | 1 | ||||
-rw-r--r-- | crypto/crypto.csproj | 5 | ||||
-rw-r--r-- | crypto/src/crypto/tls/CertificateType.cs | 18 |
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; + } +} |