GH787: Fix ALPN
authorTodd Short <tshort@akamai.com>
Sat, 5 Mar 2016 13:47:55 +0000 (08:47 -0500)
committerRich Salz <rsalz@openssl.org>
Tue, 8 Mar 2016 14:24:56 +0000 (09:24 -0500)
commit1316ca80f4e1dc9339572c780d495f995fe0bad0
treeabf1a69887b37b2d85b2c69698cf58c002209107
parent892b9376b3f6e22ca7d7ea68e1402bf2e91035a9
GH787: 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.
* clean up ssl3_free() no need to explicitly clear when doing memset
* document ALPN functions

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
CHANGES
ssl/ssl_ciph.c