diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-06-19 13:36:35 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-06-19 13:36:35 +0400 |
commit | 9f23ce242e99010ab01a57448d0b1605d84830b1 (patch) | |
tree | 2a0764249398d53637c3da9582e1d1e5023f2c75 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java | |
parent | e49392d526e1a168ed5c2c993c64d0a4feb47b65 (diff) |
Refactor code that checks version features
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java index da25fefe..4b4294e4 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java @@ -207,9 +207,7 @@ public class DTLSServerProtocol } else { - ProtocolVersion equivalentTLSVersion = state.serverContext.getServerVersion().getEquivalentTLSVersion(); - - if (ProtocolVersion.TLSv12.isEqualOrEarlierVersionOf(equivalentTLSVersion)) + if (TlsUtils.isTLSv12(state.serverContext)) { /* * RFC 5246 If no suitable certificate is available, the client MUST send a |