Fix doc for nghttp2_select_next_protocol
We have to return this error code to notify OpenSSL that we have not filled any values in |*out| and |*outlen|.
This commit is contained in:
parent
f05a4830c5
commit
f9a50333d2
|
@ -3562,6 +3562,9 @@ NGHTTP2_EXTERN int nghttp2_nv_compare_name(const nghttp2_nv *lhs,
|
|||
* {
|
||||
* int rv;
|
||||
* rv = nghttp2_select_next_protocol(out, outlen, in, inlen);
|
||||
* if (rv == -1) {
|
||||
* return SSL_TLSEXT_ERR_NOACK;
|
||||
* }
|
||||
* if (rv == 1) {
|
||||
* ((MyType*)arg)->http2_selected = 1;
|
||||
* }
|
||||
|
|
Loading…
Reference in New Issue