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:
Tatsuhiro Tsujikawa 2015-04-28 23:12:27 +09:00
parent f05a4830c5
commit f9a50333d2
1 changed files with 4 additions and 1 deletions

View File

@ -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;