Home
last modified time | relevance | path

Searched refs:alpn (Results 1 – 25 of 29) sorted by relevance

12

/curl/docs/cmdline-opts/
H A Dno-alpn.md4 Long: no-alpn
16 - --no-alpn $URL
19 # `--no-alpn`
25 Note that this is the negated option name documented. You can use --alpn to
H A Dno-npn.md14 - no-alpn
H A Dhttp2.md16 - no-alpn
H A DMakefile.inc172 no-alpn.md \
/curl/lib/vquic/
H A Dvquic-tls.c201 const char *alpn, size_t alpn_len, in wssl_init_ssl() argument
214 if(alpn) in wssl_init_ssl()
215 wolfSSL_set_alpn_protos(ctx->wssl.handle, (const unsigned char *)alpn, in wssl_init_ssl()
235 const char *alpn, size_t alpn_len, in Curl_vquic_tls_init() argument
244 (const unsigned char *)alpn, alpn_len, in Curl_vquic_tls_init()
249 (const unsigned char *)alpn, alpn_len, NULL, in Curl_vquic_tls_init()
256 return wssl_init_ssl(ctx, cf, data, peer, alpn, alpn_len, ssl_user_data); in Curl_vquic_tls_init()
H A Dvquic-tls.h75 const char *alpn, size_t alpn_len,
H A Dcurl_msh3.c915 cf->conn->alpn = CURL_HTTP_VERSION_3; in cf_msh3_connect()
H A Dcurl_quiche.c1447 cf->conn->alpn = CURL_HTTP_VERSION_3; in cf_quiche_connect()
/curl/lib/vtls/
H A Dgtls.h81 const unsigned char *alpn, size_t alpn_len,
103 const char *alpn);
H A Drustls.c651 if(connssl->alpn) { in cr_init_backend()
653 rustls_slice_bytes alpn[ALPN_ENTRIES_MAX]; in cr_init_backend() local
656 for(i = 0; i < connssl->alpn->count; ++i) { in cr_init_backend()
657 alpn[i].data = (const uint8_t *)connssl->alpn->entries[i]; in cr_init_backend()
658 alpn[i].len = strlen(connssl->alpn->entries[i]); in cr_init_backend()
660 rustls_client_config_builder_set_alpn_protocols(config_builder, alpn, in cr_init_backend()
661 connssl->alpn->count); in cr_init_backend()
662 Curl_alpn_to_proto_str(&proto, connssl->alpn); in cr_init_backend()
H A Dopenssl.h67 const unsigned char *alpn, size_t alpn_len,
H A Dvtls_int.h107 const struct alpn_spec *alpn; /* ALPN to use or NULL for none */ member
248 const char *alpn,
H A Dgtls.c727 const char *alpn) in Curl_gtls_update_session_id() argument
755 connect_idsize, alpn ? alpn : "-"); in Curl_gtls_update_session_id()
758 result = Curl_ssl_set_sessionid(cf, data, peer, alpn, in Curl_gtls_update_session_id()
1053 const unsigned char *alpn, size_t alpn_len, in Curl_gtls_ctx_init() argument
1110 Curl_alpn_contains_proto(connssl->alpn, session_alpn)) { in Curl_gtls_ctx_init()
1144 if(!gtls_alpns_count && alpn && alpn_len) { in Curl_gtls_ctx_init()
1146 unsigned char *s = (unsigned char *)alpn; in Curl_gtls_ctx_init()
1191 if(connssl->alpn) { in gtls_connect_step1()
1192 result = Curl_alpn_to_proto_buf(&proto, connssl->alpn); in gtls_connect_step1()
1204 if(connssl->alpn && (connssl->state != ssl_connection_deferred)) { in gtls_connect_step1()
[all …]
H A Dvtls.c457 const struct alpn_spec *alpn) in cf_ctx_new() argument
466 ctx->alpn = alpn; in cf_ctx_new()
595 *palpn = check->alpn; in Curl_ssl_getsessionid()
626 Curl_safefree(session->alpn); in Curl_ssl_kill_session()
650 const char *alpn, in Curl_ssl_set_sessionid() argument
703 clone_alpn = alpn ? strdup(alpn) : NULL; in Curl_ssl_set_sessionid()
704 if(alpn && !clone_alpn) in Curl_ssl_set_sessionid()
755 store->alpn = clone_alpn; in Curl_ssl_set_sessionid()
2274 &cf->conn->proxy_alpn : &cf->conn->alpn in Curl_alpn_set_negotiated()
2276 &cf->conn->alpn in Curl_alpn_set_negotiated()
H A Dbearssl.c628 if(connssl->alpn) { in bearssl_connect_step1()
632 for(i = 0; i < connssl->alpn->count; ++i) { in bearssl_connect_step1()
633 backend->protocols[i] = connssl->alpn->entries[i]; in bearssl_connect_step1()
636 connssl->alpn->count); in bearssl_connect_step1()
637 Curl_alpn_to_proto_str(&proto, connssl->alpn); in bearssl_connect_step1()
826 if(connssl->alpn) { in bearssl_connect_step3()
H A Dmbedtls.c926 if(connssl->alpn) {
930 for(i = 0; i < connssl->alpn->count; ++i) {
931 backend->protocols[i] = connssl->alpn->entries[i];
940 Curl_alpn_to_proto_str(&proto, connssl->alpn);
1104 if(connssl->alpn) {
H A Dsectransp.c1096 if(connssl->alpn) {
1103 for(i = 0; i < connssl->alpn->count; ++i) {
1104 cstr = CFStringCreateWithCString(NULL, connssl->alpn->entries[i],
1116 Curl_alpn_to_proto_str(&proto, connssl->alpn);
2088 if(connssl->alpn) {
2100 cf->conn->alpn = CURL_HTTP_VERSION_2;
2106 cf->conn->alpn = CURL_HTTP_VERSION_1_1;
H A Dschannel.c913 backend->use_alpn = connssl->alpn && in schannel_connect_step1()
1019 result = Curl_alpn_to_proto_buf(&proto, connssl->alpn); in schannel_connect_step1()
1034 Curl_alpn_to_proto_str(&proto, connssl->alpn); in schannel_connect_step1()
1579 unsigned char prev_alpn = cf->conn->alpn; in schannel_connect_step3()
1584 if(prev_alpn != cf->conn->alpn && in schannel_connect_step3()
H A Dopenssl.c3480 const unsigned char *alpn, size_t alpn_len, in Curl_ossl_ctx_init() argument
3677 if(alpn && alpn_len) { in Curl_ossl_ctx_init()
3679 if(SSL_CTX_set_alpn_protos(octx->ssl_ctx, alpn, (int)alpn_len)) { in Curl_ossl_ctx_init()
4020 if(connssl->alpn) { in ossl_connect_step1()
4021 result = Curl_alpn_to_proto_buf(&proto, connssl->alpn); in ossl_connect_step1()
4057 if(connssl->alpn) { in ossl_connect_step1()
4058 Curl_alpn_to_proto_str(&proto, connssl->alpn); in ossl_connect_step1()
4377 if(connssl->alpn) {
H A Dwolfssl.c1158 if(connssl->alpn) { in wolfssl_connect_step1()
1162 result = Curl_alpn_to_proto_str(&proto, connssl->alpn); in wolfssl_connect_step1()
1528 if(connssl->alpn) { in wolfssl_connect_step2()
/curl/lib/
H A Dhttp_proxy.c188 int alpn = Curl_conn_cf_is_ssl(cf->next) ? in http_proxy_cf_connect() local
192 switch(alpn) { in http_proxy_cf_connect()
198 (alpn == CURL_HTTP_VERSION_1_0) ? 0 : 1); in http_proxy_cf_connect()
215 infof(data, "CONNECT tunnel: unsupported ALPN(%d) negotiated", alpn); in http_proxy_cf_connect()
H A Durldata.h351 char *alpn; /* APLN TLS negotiated protocol string */ member
990 unsigned char alpn; /* APLN TLS negotiated protocol, a CURL_HTTP_VERSION* member
H A Dcf-https-connect.c197 switch(cf->conn->alpn) { in baller_connected()
H A Dc-hyper.c926 if(conn->alpn == CURL_HTTP_VERSION_2) { in Curl_http()
/curl/docs/
H A Doptions-in-versions137 --no-alpn 7.36.0

Completed in 81 milliseconds

12