diff options
author | Todd Short <tshort@akamai.com> | 2022-09-23 12:03:13 -0400 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-09-28 09:59:31 -0400 |
commit | 8ff66343bdf635ad574e9db4d4fca8f82c4bcc98 (patch) | |
tree | 1de4ac93be55434f1e08f40ba08e908ae5e00038 /test/recipes | |
parent | 54ba0f1625b515293d76f61dda62644c9c02704e (diff) |
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)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/02-test_internal_exts.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/recipes/02-test_internal_exts.t b/test/recipes/02-test_internal_exts.t new file mode 100644 index 0000000000..bec4a216cb --- /dev/null +++ b/test/recipes/02-test_internal_exts.t @@ -0,0 +1,15 @@ +#! /usr/bin/env perl +# Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the Apache License 2.0 (the "License"). You may not use +# this file except in compliance with the License. You can obtain a copy +# in the file LICENSE in the source distribution or at +# https://www.openssl.org/source/license.html + +use strict; +use OpenSSL::Test; +use OpenSSL::Test::Simple; + +setup("test_internal_exts"); + +simple_test("test_internal_exts", "ext_internal_test"); |