diff options
author | Daiki Ueno <ueno@gnu.org> | 2018-08-20 13:17:35 +0000 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-08-20 13:17:35 +0000 |
commit | a42db538c3f01aa76e2c1a2affc39237840c2522 (patch) | |
tree | fba9bf12ff6efe65d210a9959e30a1c654c6aaa1 /lib/gnutls_int.h | |
parent | e30d157cb722efe9d8047369f627b20467ff62a5 (diff) | |
parent | 03db8d479fde6921afd4c98fc3df8200f9f014db (diff) | |
download | gnutls-a42db538c3f01aa76e2c1a2affc39237840c2522.tar.gz |
Merge branch 'tmp-record-size-limit' into 'master'
record_size_limit extension
Closes #524
See merge request gnutls/gnutls!733
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index f4dc71bb3c..dfec39ec33 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -201,6 +201,8 @@ typedef enum record_send_state_t { #define RECORD_HEADER_SIZE(session) (IS_DTLS(session) ? DTLS_RECORD_HEADER_SIZE : TLS_RECORD_HEADER_SIZE) #define MAX_RECORD_HEADER_SIZE DTLS_RECORD_HEADER_SIZE +#define MIN_RECORD_SIZE 512 + /* The following macro is used to calculate the overhead when sending. * when receiving we use a different way as there are implementations that * store more data than allowed. @@ -343,6 +345,7 @@ typedef enum extensions_t { GNUTLS_EXTENSION_COOKIE, GNUTLS_EXTENSION_EARLY_DATA, GNUTLS_EXTENSION_PSK_KE_MODES, + GNUTLS_EXTENSION_RECORD_SIZE_LIMIT, /* * pre_shared_key and dumbfw must always be the last extensions, * in that order */ @@ -1300,6 +1303,7 @@ typedef struct { #define HSK_TICKET_RECEIVED (1<<20) /* client: a session ticket was received */ #define HSK_EARLY_START_USED (1<<21) #define HSK_EARLY_DATA_IN_FLIGHT (1<<22) /* server: early_data extension was seen in ClientHello */ +#define HSK_RECORD_SIZE_LIMIT_NEGOTIATED (1<<23) /* The hsk_flags are for use within the ongoing handshake; * they are reset to zero prior to handshake start by gnutls_handshake. */ |