summary refs log tree commit diff
path: root/crypto/src/tls/DtlsClientProtocol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/DtlsClientProtocol.cs')
-rw-r--r--crypto/src/tls/DtlsClientProtocol.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/src/tls/DtlsClientProtocol.cs b/crypto/src/tls/DtlsClientProtocol.cs

index 2b132f564..1328a940e 100644 --- a/crypto/src/tls/DtlsClientProtocol.cs +++ b/crypto/src/tls/DtlsClientProtocol.cs
@@ -612,11 +612,10 @@ namespace Org.BouncyCastle.Tls if (null == sessionVersion || !sessionVersion.IsDtls) return false; - bool isEms = sessionParameters.IsExtendedMasterSecret; - if (!TlsUtilities.IsExtendedMasterSecretOptional(sessionVersion)) + if (!sessionParameters.IsExtendedMasterSecret && + !TlsUtilities.IsExtendedMasterSecretOptional(sessionVersion)) { - if (!isEms) - return false; + return false; } TlsCrypto crypto = state.clientContext.Crypto;