summary refs log tree commit diff
path: root/crypto/src/tls/TlsClientProtocol.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-05-10 18:19:08 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-05-10 18:19:08 +0700
commit3ad16da3f107f766a8ba50eb85906040f25bde95 (patch)
tree975935fda793934585007219f6b4afcb1e2eaf12 /crypto/src/tls/TlsClientProtocol.cs
parentMinor SignatureAlgorithm additions (diff)
downloadBouncyCastle.NET-ed25519-3ad16da3f107f766a8ba50eb85906040f25bde95.tar.xz
Improve TLS handshake hash tracking
Diffstat (limited to 'crypto/src/tls/TlsClientProtocol.cs')
-rw-r--r--crypto/src/tls/TlsClientProtocol.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/tls/TlsClientProtocol.cs b/crypto/src/tls/TlsClientProtocol.cs
index 930294eae..ba2b565ca 100644
--- a/crypto/src/tls/TlsClientProtocol.cs
+++ b/crypto/src/tls/TlsClientProtocol.cs
@@ -462,7 +462,7 @@ namespace Org.BouncyCastle.Tls
                     {
                         ProcessServerHello(serverHello);
                         m_handshakeHash.NotifyPrfDetermined();
-                        if (!ProtocolVersion.TLSv12.Equals(securityParameters.NegotiatedVersion))
+                        if (TlsUtilities.IsTlsV13(securityParameters.NegotiatedVersion))
                         {
                             m_handshakeHash.SealHashAlgorithms();
                         }
@@ -569,10 +569,7 @@ namespace Org.BouncyCastle.Tls
                         }
                     }
 
-                    if (ProtocolVersion.TLSv12.Equals(securityParameters.NegotiatedVersion))
-                    {
-                        m_handshakeHash.SealHashAlgorithms();
-                    }
+                    m_handshakeHash.SealHashAlgorithms();
 
                     if (clientAuthCredentials == null)
                     {