TLS: reject duplicate extensions
authorEmilia Kasper <emilia@openssl.org>
Fri, 19 Feb 2016 16:24:44 +0000 (17:24 +0100)
committerEmilia Kasper <emilia@openssl.org>
Fri, 19 Feb 2016 16:24:44 +0000 (17:24 +0100)
commitaa474d1fb172aabb29dad04cb6aaeca601a4378c
tree51a82f8896aecd1f989f84e08ea15b0b9e4255e2
parentf0496ad71fbacccf5a95f40d31d251bc8cf9dcfb
TLS: reject duplicate extensions

Adapted from BoringSSL. Added a test.

The extension parsing code is already attempting to already handle this for
some individual extensions, but it is doing so inconsistently. Duplicate
efforts in individual extension parsing will be cleaned up in a follow-up.

Reviewed-by: Stephen Henson <steve@openssl.org>
include/openssl/ssl.h
ssl/ssl_err.c
ssl/t1_lib.c
test/recipes/70-test_sslcertstatus.t
test/recipes/70-test_sslextension.t
test/recipes/70-test_sslsessiontick.t
test/recipes/70-test_tlsextms.t
util/TLSProxy/ClientHello.pm
util/TLSProxy/Message.pm
util/TLSProxy/ServerHello.pm