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-09-17 07:29:06 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-09-17 07:29:06 +0400
commite12184a52a16f847f622d335d4301173f1b41d9a (patch)
tree1ae906b72f6c273de42dc00ed8b748c4a02df8a3 /core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
parentf7a703514cfc5ce72da63747193d5efb7005e3ae (diff)
Refactor to use TlsUtils.isSSL
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
index f9a90698..e720d08d 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsMac.java
@@ -137,7 +137,7 @@ public class TlsMac
* ...but ensure a constant number of complete digest blocks are processed (as many as would
* be needed for 'fullLength' bytes of input).
*/
- int headerLength = context.getServerVersion().isSSL() ? 11 : 13;
+ int headerLength = TlsUtils.isSSL(context) ? 11 : 13;
// How many extra full blocks do we need to calculate?
int extra = getDigestBlockCount(headerLength + fullLength) - getDigestBlockCount(headerLength + length);