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-20 17:56:23 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-20 17:56:23 +0400
commit8f79f999f84dee49eb8a8244dd47d71f94b641cc (patch)
treefbc6d0e94de5b51690382481b31ec540d05ec0c9 /core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
parentb56d8809108ba95756880d95f971a624fd9da84d (diff)
Add support for max_fragment_length extension to D/TLS protocols
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
index 74f7dc8b..04236958 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
@@ -722,6 +722,8 @@ public class TlsServerProtocol
if (this.serverExtensions != null)
{
+ processMaxFragmentLengthExtension(clientExtensions, serverExtensions, AlertDescription.internal_error);
+
this.securityParameters.truncatedHMac = TlsExtensionsUtils.hasTruncatedHMacExtension(serverExtensions);
// TODO[RFC 3546] Should this code check that the 'extension_data' is empty?