From 0351baae36afe1182237e0bd88ec9d13f5c97f32 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Sat, 12 Mar 2016 09:14:05 -0500 Subject: Fix ALPN - more fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Clear proposed, along with selected, before looking at ClientHello * Add test case for above * Clear NPN seen after selecting ALPN on server * Minor documentation updates Reviewed-by: Emilia Käsper Reviewed-by: Rich Salz --- doc/ssl/SSL_CTX_set_alpn_select_cb.pod | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/ssl/SSL_CTX_set_alpn_select_cb.pod b/doc/ssl/SSL_CTX_set_alpn_select_cb.pod index 974ca8618b..1a3d92c03a 100644 --- a/doc/ssl/SSL_CTX_set_alpn_select_cb.pod +++ b/doc/ssl/SSL_CTX_set_alpn_select_cb.pod @@ -2,8 +2,8 @@ =head1 NAME -SSL_CTX_set_alpn_select_cb, SSL_CTX_set_alpn_protos, SSL_set_alpn_protos, -SSL_get0_alpn_selected, SSL_select_next_proto - handle application layer +SSL_CTX_set_alpn_protos, SSL_set_alpn_protos, SSL_CTX_set_alpn_select_cb, +SSL_select_next_proto, SSL_get0_alpn_selected - handle application layer protocol negotiation (ALPN) =head1 SYNOPSIS @@ -38,19 +38,19 @@ B. SSL_CTX_set_alpn_select_cb() sets the application callback B used by a server to select which protocol to use for the incoming connection. When B -is NULL, no ALPN is not used. The B value is pointer which is passed to +is NULL, ALPN is not used. The B value is a pointer which is passed to the application callback. B is the application defined callback. The B, B parameters are a vector in protocol-list format. The value of the B, B vector -should be set to the value of a single protocol contained with in the B, +should be set to the value of a single protocol selected from the B, B vector. The B parameter is the pointer set via SSL_CTX_set_alpn_select_cb(). SSL_select_next_proto() is a helper function used to select protocols. It implements the standard protocol selection. It is expected that this function is called from the application callback B. The protocol data in B, -B and B, B must be in protocol-list format +B and B, B must be in the protocol-list format described below. The first item in the B, B list that matches an item in the B, B list is selected, and returned in B, B. The B value will point into either B or @@ -60,7 +60,7 @@ function can also be used in the NPN callback. SSL_get0_alpn_selected() returns a pointer to the selected protocol in B with length B. It is not NUL-terminated. B is set to NULL and B -is set to 0 if no protocol has been selected. B value must not be freed. +is set to 0 if no protocol has been selected. B must not be freed. =head1 NOTES -- cgit v1.2.3