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:59:31 +0000 (09:59 -0400)
commit8ff66343bdf635ad574e9db4d4fca8f82c4bcc98
tree1de4ac93be55434f1e08f40ba08e908ae5e00038
parent54ba0f1625b515293d76f61dda62644c9c02704e
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)

(cherry picked from commit ac44deaf00ad24fd18b9d74de4a23d98a2b75c8d)
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]