summary refs log tree commit diff
path: root/crypto/src/tls/TlsProtocol.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-07 17:51:23 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-07 17:51:23 +0700
commit3e43ee2765dd0e059e616bc8d5fbf403645fa3a9 (patch)
tree54c4df3e32d6937d7fca3e9746731e581bb6aa76 /crypto/src/tls/TlsProtocol.cs
parentRefactoring in DTLS (diff)
downloadBouncyCastle.NET-ed25519-3e43ee2765dd0e059e616bc8d5fbf403645fa3a9.tar.xz
Refactoring in DTLS
Diffstat (limited to 'crypto/src/tls/TlsProtocol.cs')
-rw-r--r--crypto/src/tls/TlsProtocol.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tls/TlsProtocol.cs b/crypto/src/tls/TlsProtocol.cs
index 9b8039a5e..773412973 100644
--- a/crypto/src/tls/TlsProtocol.cs
+++ b/crypto/src/tls/TlsProtocol.cs
@@ -1470,8 +1470,8 @@ namespace Org.BouncyCastle.Tls
                     return false;
             }
 
-            TlsSecret sessionMasterSecret = TlsUtilities.GetSessionMasterSecret(Context.Crypto,
-                sessionParameters.MasterSecret);
+            TlsCrypto crypto = Context.Crypto;
+            TlsSecret sessionMasterSecret = TlsUtilities.GetSessionMasterSecret(crypto, sessionParameters.MasterSecret);
             if (null == sessionMasterSecret)
                 return false;