[openssl/openssl] ac44de: Test TLS extension ordering

Todd Short noreply at github.com
Wed Sep 28 14:00:55 UTC 2022

  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: ac44deaf00ad24fd18b9d74de4a23d98a2b75c8d
  Author: Todd Short <tshort at akamai.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M ssl/statem/extensions.c
    M ssl/statem/statem_local.h
    M test/build.info
    A test/ext_internal_test.c
    A test/recipes/02-test_internal_exts.t

  Log Message:
  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 at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19269)

More information about the openssl-commits mailing list