Test TLS extension ordering
authorTodd Short <tshort@akamai.com>
Fri, 23 Sep 2022 16:03:13 +0000 (12:03 -0400)
committerTodd Short <todd.short@me.com>
Wed, 28 Sep 2022 13:54:25 +0000 (09:54 -0400)
commitac44deaf00ad24fd18b9d74de4a23d98a2b75c8d
tree3c4d6dfa55ab241562a9ebfed12bd7f6ae47e518
parenta9c474dc98233ce6e64b898874e3604cc151f461
Test TLS extension ordering

Adding extensions is fragile, with the TLSEXT_TYPE entry needing to be
located at TLSEXT_IDX in the array.

This adds a test to ensure extensions are in the correct order.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19269)
ssl/statem/extensions.c
ssl/statem/statem_local.h
test/build.info
test/ext_internal_test.c [new file with mode: 0644]
test/recipes/02-test_internal_exts.t [new file with mode: 0644]