diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-01-28 05:59:30 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-01-28 05:59:30 +0400 |
commit | b67358982e98475a03b00e06f69da1594fec48ff (patch) | |
tree | 38c354f2ac8ed204a89e81c458edf75ded1b40c7 /core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java | |
parent | 18e91d52dff4fd1035bfdda30d9a7b26054b8145 (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.java | 2 |
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); |