]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
ext/record_size_limit: mark it as mandatory extension
authorDaiki Ueno <dueno@redhat.com>
Thu, 17 Jan 2019 16:50:49 +0000 (17:50 +0100)
committerDaiki Ueno <dueno@redhat.com>
Wed, 23 Jan 2019 16:53:35 +0000 (17:53 +0100)
In a resuming session record_size_limit is always renegotiated, and
thus the server should parse the extension always.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
lib/ext/record_size_limit.c

index 35b5e446d20e99b600298619c91d47ef99996570..c74ae81e4be6d5c9281c88e5f4ad53d74f8c7db6 100644 (file)
@@ -39,7 +39,7 @@ const hello_ext_entry_st ext_mod_record_size_limit = {
        .name = "Record Size Limit",
        .tls_id = 28,
        .gid = GNUTLS_EXTENSION_RECORD_SIZE_LIMIT,
-       .parse_type = GNUTLS_EXT_TLS,
+       .parse_type = GNUTLS_EXT_MANDATORY,
        .validity = GNUTLS_EXT_FLAG_TLS | GNUTLS_EXT_FLAG_DTLS | GNUTLS_EXT_FLAG_CLIENT_HELLO |
                    GNUTLS_EXT_FLAG_EE | GNUTLS_EXT_FLAG_TLS12_SERVER_HELLO,
        .recv_func = _gnutls_record_size_limit_recv_params,