summary refs log tree commit diff
path: root/crypto/src/tls/SecurityParameters.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-13 16:02:08 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-13 16:02:08 +0700
commit5c755417ddb98738a8550707d2c436f707cf9f45 (patch)
treec56e51b88b241fee6e1a1c89da430ef005ab44cc /crypto/src/tls/SecurityParameters.cs
parent(D)TLS: Clean up redundant resumption checks (diff)
downloadBouncyCastle.NET-ed25519-5c755417ddb98738a8550707d2c436f707cf9f45.tar.xz
(D)TLS: Refactoring around CertificateType support
Diffstat (limited to 'crypto/src/tls/SecurityParameters.cs')
-rw-r--r--crypto/src/tls/SecurityParameters.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/src/tls/SecurityParameters.cs b/crypto/src/tls/SecurityParameters.cs
index 7deeeb72b..56c9e1074 100644
--- a/crypto/src/tls/SecurityParameters.cs
+++ b/crypto/src/tls/SecurityParameters.cs
@@ -51,7 +51,8 @@ namespace Org.BouncyCastle.Tls
         internal Certificate m_peerCertificate = null;
         internal ProtocolVersion m_negotiatedVersion = null;
         internal int m_statusRequestVersion = 0;
-        internal short m_clientCertificateType = -1;
+        internal short m_clientCertificateType = CertificateType.X509;
+        internal short m_serverCertificateType = CertificateType.X509;
 
         // TODO[tls-ops] Investigate whether we can handle verify data using TlsSecret
         internal byte[] m_localVerifyData = null;
@@ -264,6 +265,11 @@ namespace Org.BouncyCastle.Tls
             get { return m_pskIdentity; }
         }
 
+        public short ServerCertificateType
+        {
+            get { return m_serverCertificateType; }
+        }
+
         public byte[] ServerRandom
         {
             get { return m_serverRandom; }