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>2014-01-28 05:59:30 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-28 05:59:30 +0400
commitb67358982e98475a03b00e06f69da1594fec48ff (patch)
tree38c354f2ac8ed204a89e81c458edf75ded1b40c7 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
parent18e91d52dff4fd1035bfdda30d9a7b26054b8145 (diff)
Wire up the extension processing for encrypt_then_mac
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.java2
1 files changed, 2 insertions, 0 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 7fc23226..d6d6a8d9 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
@@ -389,6 +389,8 @@ public class DTLSServerProtocol
if (state.serverExtensions != null)
{
+ securityParameters.encryptThenMAC = TlsExtensionsUtils.hasEncryptThenMACExtension(state.serverExtensions);
+
state.maxFragmentLength = evaluateMaxFragmentLengthExtension(state.clientExtensions, state.serverExtensions,
AlertDescription.internal_error);