Add SSL_early_get1_extensions_present()
authorBenjamin Kaduk <bkaduk@akamai.com>
Thu, 16 Mar 2017 22:17:16 +0000 (17:17 -0500)
committerMatt Caswell <matt@openssl.org>
Mon, 12 Jun 2017 08:31:47 +0000 (09:31 +0100)
commit193b5d769cdaa3bc0778f7b7ae354618097ca61e
tree1a9c63ea245b98e7138126fd06c9963e2ed08437
parent0e1e4045c469f03294e33c0344d882e71dbd0d07
Add SSL_early_get1_extensions_present()

It is an API to be used from the early callback that indicates what
extensions were present in the ClientHello, and in what order.
This can be used to eliminate unneeded calls to SSL_early_get0_ext()
(which itself scales linearly in the number of extensions supported
by the library).

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2976)
doc/man3/SSL_CTX_set_early_cb.pod
include/openssl/ssl.h
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/statem/extensions.c
util/libssl.num