You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4973,11 +5022,14 @@ NGHTTP2_EXTERN int nghttp2_nv_compare_name(const nghttp2_nv *lhs,
4973
5022
/**
4974
5023
* @function
4975
5024
*
4976
-
* A helper function for dealing with NPN in client side or ALPN in
4977
-
* server side. The |in| contains peer's protocol list in preferable
4978
-
* order. The format of |in| is length-prefixed and not
4979
-
* null-terminated. For example, ``h2`` and
4980
-
* ``http/1.1`` stored in |in| like this::
5025
+
* .. warning::
5026
+
*
5027
+
* Deprecated. Use `nghttp2_select_alpn` instead.
5028
+
*
5029
+
* A helper function for dealing with ALPN in server side. The |in|
5030
+
* contains peer's protocol list in preferable order. The format of
5031
+
* |in| is length-prefixed and not null-terminated. For example,
5032
+
* ``h2`` and ``http/1.1`` stored in |in| like this::
4981
5033
*
4982
5034
* in[0] = 2
4983
5035
* in[1..2] = "h2"
@@ -5002,20 +5054,18 @@ NGHTTP2_EXTERN int nghttp2_nv_compare_name(const nghttp2_nv *lhs,
5002
5054
*
5003
5055
* For ALPN, refer to https://tools.ietf.org/html/rfc7301
5004
5056
*
5005
-
* See http://technotes.googlecode.com/git/nextprotoneg.html for more
5006
-
* details about NPN.
5007
-
*
5008
-
* For NPN, to use this method you should do something like::
5057
+
* To use this method you should do something like::
5009
5058
*
5010
-
* static int select_next_proto_cb(SSL* ssl,
5011
-
* unsigned char **out,
5059
+
* static int alpn_select_proto_cb(SSL* ssl,
5060
+
* const unsigned char **out,
5012
5061
* unsigned char *outlen,
5013
5062
* const unsigned char *in,
5014
5063
* unsigned int inlen,
5015
5064
* void *arg)
5016
5065
* {
5017
5066
* int rv;
5018
-
* rv = nghttp2_select_next_protocol(out, outlen, in, inlen);
0 commit comments