Home
last modified time | relevance | path

Searched refs:alpnlen (Results 1 – 7 of 7) sorted by relevance

/third_party/nghttp2/examples/
Dlibevent-client.c504 unsigned int alpnlen = 0; in eventcb() local
512 SSL_get0_next_proto_negotiated(ssl, &alpn, &alpnlen); in eventcb()
516 SSL_get0_alpn_selected(ssl, &alpn, &alpnlen); in eventcb()
520 if (alpn == NULL || alpnlen != 2 || memcmp("h2", alpn, 2) != 0) { in eventcb()
Dlibevent-server.c697 unsigned int alpnlen = 0; in eventcb() local
706 SSL_get0_next_proto_negotiated(ssl, &alpn, &alpnlen); in eventcb()
710 SSL_get0_alpn_selected(ssl, &alpn, &alpnlen); in eventcb()
714 if (alpn == NULL || alpnlen != 2 || memcmp("h2", alpn, 2) != 0) { in eventcb()
/third_party/node/src/quic/
Dtlscontext.cc531 unsigned int alpnlen; in alpn() local
532 SSL_get0_alpn_selected(ssl_.get(), &alpn_buf, &alpnlen); in alpn()
533 return alpnlen ? std::string_view(reinterpret_cast<const char*>(alpn_buf), in alpn()
534 alpnlen) in alpn()
/third_party/nghttp2/doc/sources/
Dtutorial-client.rst151 unsigned int alpnlen = 0;
158 SSL_get0_next_proto_negotiated(ssl, &alpn, &alpnlen);
161 SSL_get0_alpn_selected(ssl, &alpn, &alpnlen);
165 if (alpn == NULL || alpnlen != 2 || memcmp("h2", alpn, 2) != 0) {
Dtutorial-server.rst209 unsigned int alpnlen = 0;
216 SSL_get0_next_proto_negotiated(ssl, &alpn, &alpnlen);
219 SSL_get0_alpn_selected(ssl, &alpn, &alpnlen);
223 if (alpn == NULL || alpnlen != 2 || memcmp("h2", alpn, 2) != 0) {
/third_party/curl/lib/vquic/
Dcurl_ngtcp2.c516 size_t alpnlen = 0; in quic_init_ssl() local
527 alpnlen = sizeof(H3_ALPN_H3_29) - 1 + sizeof(H3_ALPN_H3) - 1; in quic_init_ssl()
529 SSL_set_alpn_protos(ctx->ssl, alpn, (int)alpnlen); in quic_init_ssl()
709 size_t alpnlen = 0; in quic_init_ssl() local
722 alpnlen = sizeof(H3_ALPN_H3_29) - 1 + sizeof(H3_ALPN_H3) - 1; in quic_init_ssl()
724 wolfSSL_set_alpn_protos(ctx->ssl, alpn, (int)alpnlen); in quic_init_ssl()
/third_party/nghttp2/src/
Dshrpx_client_handler.cc1705 unsigned int alpnlen; in set_alpn_from_conn() local
1707 SSL_get0_alpn_selected(conn_.tls.ssl, &alpn, &alpnlen); in set_alpn_from_conn()
1709 alpn_ = make_string_ref(balloc_, StringRef{alpn, alpnlen}); in set_alpn_from_conn()