summaryrefslogtreecommitdiff
path: root/lib/ssl/sslspec.h
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2017-11-24 16:40:22 +1100
committerMartin Thomson <martin.thomson@gmail.com>2017-11-24 16:40:22 +1100
commit1ee76b91c89ce6e6166d3631e07d23e836e9dc26 (patch)
tree63c5bfefa0dd0d135f5841cac890b5002907ba52 /lib/ssl/sslspec.h
parentcea9c7ec22e0483a4d5d03245cd03f443aeb752b (diff)
downloadnss-hg-1ee76b91c89ce6e6166d3631e07d23e836e9dc26.tar.gz
Bug 1396487 - Record size limiting extension, r=ekr
Summary: See draft-ietf-tls-record-limit for details. Reviewers: ekr Bug #: 1396487 Differential Revision: https://phabricator.services.mozilla.com/D23
Diffstat (limited to 'lib/ssl/sslspec.h')
-rw-r--r--lib/ssl/sslspec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssl/sslspec.h b/lib/ssl/sslspec.h
index 207bd6ef6..b25601755 100644
--- a/lib/ssl/sslspec.h
+++ b/lib/ssl/sslspec.h
@@ -170,6 +170,10 @@ struct ssl3CipherSpecStr {
/* The number of 0-RTT bytes that can be sent or received in TLS 1.3. This
* will be zero for everything but 0-RTT. */
PRUint32 earlyDataRemaining;
+ /* The maximum plaintext length. This differs from the configured or
+ * negotiated value for TLS 1.3; it is reduced by one to account for the
+ * content type octet. */
+ PRUint16 recordSizeLimit;
};
typedef void (*sslCipherSpecChangedFunc)(void *arg,