Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-06-19 13:36:35 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-19 13:36:35 +0400
commit9f23ce242e99010ab01a57448d0b1605d84830b1 (patch)
tree2a0764249398d53637c3da9582e1d1e5023f2c75 /core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java
parente49392d526e1a168ed5c2c993c64d0a4feb47b65 (diff)
Refactor code that checks version features
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java b/core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java
index d7fda271..8ce89886 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DigitallySigned.java
@@ -57,7 +57,7 @@ public class DigitallySigned
public static DigitallySigned parse(TlsContext context, InputStream input) throws IOException
{
SignatureAndHashAlgorithm algorithm = null;
- if (ProtocolVersion.TLSv12.isEqualOrEarlierVersionOf(context.getServerVersion().getEquivalentTLSVersion()))
+ if (TlsUtils.isTLSv12(context))
{
algorithm = SignatureAndHashAlgorithm.parse(input);
}