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,7 +3562,10 @@ NGHTTP2_EXTERN int nghttp2_nv_compare_name(const nghttp2_nv *lhs,
|
||||||
* {
|
* {
|
||||||
* int rv;
|
* int rv;
|
||||||
* rv = nghttp2_select_next_protocol(out, outlen, in, inlen);
|
* rv = nghttp2_select_next_protocol(out, outlen, in, inlen);
|
||||||
* if(rv == 1) {
|
* if (rv == -1) {
|
||||||
|
* return SSL_TLSEXT_ERR_NOACK;
|
||||||
|
* }
|
||||||
|
* if (rv == 1) {
|
||||||
* ((MyType*)arg)->http2_selected = 1;
|
* ((MyType*)arg)->http2_selected = 1;
|
||||||
* }
|
* }
|
||||||
* return SSL_TLSEXT_ERR_OK;
|
* return SSL_TLSEXT_ERR_OK;
|
||||||
|
|
Loading…
Reference in New Issue