Fix ALPN
authorTodd Short <tshort@akamai.com>
Sat, 5 Mar 2016 13:47:55 +0000 (08:47 -0500)
committerRich Salz <rsalz@openssl.org>
Mon, 4 Apr 2016 17:45:09 +0000 (13:45 -0400)
commitaf2db04c9979554ada88d969da6332a827a47599
tree9b8172004eded2a5b3ae60d9acf28cdf016ae0a7
parent21211ade53f92629250bbea5e37d9179a31d3be2
Fix ALPN

* Perform ALPN after the SNI callback; the SSL_CTX may change due to
  that processing
* Add flags to indicate that we actually sent ALPN, to properly error
  out if unexpectedly received.
* document ALPN functions
* unit tests

Backport of commit 817cd0d52f0462039d1fe60462150be7f59d2002

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
CHANGES
doc/ssl/SSL_CTX_set_alpn_select_cb.pod [new file with mode: 0644]
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/ssltest.c
ssl/t1_lib.c
test/testssl