Home
last modified time | relevance | path

Searched refs:alpn_len (Results 1 – 8 of 8) sorted by relevance

/third_party/mbedtls/programs/ssl/
Dssl_context_info.c985 uint8_t alpn_len; in print_deserialized_ssl_context() local
988 alpn_len = *ssl++; in print_deserialized_ssl_context()
989 printf_dbg( "ALPN length %u\n", (uint32_t) alpn_len ); in print_deserialized_ssl_context()
992 CHECK_SSL_END( alpn_len ); in print_deserialized_ssl_context()
993 if( alpn_len > 0 ) in print_deserialized_ssl_context()
995 if( strlen( (const char*) ssl ) == alpn_len ) in print_deserialized_ssl_context()
1004 ssl += alpn_len; in print_deserialized_ssl_context()
/third_party/curl/lib/vquic/
Dquiche.c271 unsigned alpn_len, offset = 0; in Curl_quic_connect() local
275 alpn_len = alpn_protocols[offset]; in Curl_quic_connect()
277 offset += 1 + alpn_len; in Curl_quic_connect()
/third_party/mbedtls/library/
Dssl_tls.c5891 const uint8_t alpn_len = ssl->alpn_chosen in mbedtls_ssl_context_save() local
5895 used += 1 + alpn_len; in mbedtls_ssl_context_save()
5898 *p++ = alpn_len; in mbedtls_ssl_context_save()
5902 memcpy( p, ssl->alpn_chosen, alpn_len ); in mbedtls_ssl_context_save()
5903 p += alpn_len; in mbedtls_ssl_context_save()
6148 uint8_t alpn_len; in ssl_context_load() local
6154 alpn_len = *p++; in ssl_context_load()
6156 if( alpn_len != 0 && ssl->conf->alpn_list != NULL ) in ssl_context_load()
6161 if( strlen( *cur ) == alpn_len && in ssl_context_load()
6162 memcmp( p, cur, alpn_len ) == 0 ) in ssl_context_load()
[all …]
/third_party/openssl/ssl/
Dssl_lib.c806 s->ext.alpn = OPENSSL_malloc(s->ctx->ext.alpn_len); in SSL_new()
808 s->ext.alpn_len = 0; in SSL_new()
811 memcpy(s->ext.alpn, s->ctx->ext.alpn, s->ctx->ext.alpn_len); in SSL_new()
812 s->ext.alpn_len = s->ctx->ext.alpn_len; in SSL_new()
2865 ctx->ext.alpn_len = 0; in SSL_CTX_set_alpn_protos()
2879 ctx->ext.alpn_len = protos_len; in SSL_CTX_set_alpn_protos()
2897 ssl->ext.alpn_len = 0; in SSL_set_alpn_protos()
2911 ssl->ext.alpn_len = protos_len; in SSL_set_alpn_protos()
Dssl_local.h981 size_t alpn_len; member
1322 size_t alpn_len; member
/third_party/openssl/test/
Dssltest_old.c1717 size_t alpn_len; in main() local
1718 unsigned char *alpn = next_protos_parse(&alpn_len, alpn_client); in main()
1725 if (SSL_CTX_set_alpn_protos(c_ctx, alpn, alpn_len)) { in main()
/third_party/openssl/ssl/statem/
Dextensions_clnt.c399 || !WPACKET_sub_memcpy_u16(pkt, s->ext.alpn, s->ext.alpn_len) in tls_construct_ctos_alpn()
861 if (!PACKET_buf_init(&prots, s->ext.alpn, s->ext.alpn_len)) { in tls_construct_ctos_early_data()
/third_party/openssl/apps/
Ds_client.c1881 size_t alpn_len; in s_client_main() local
1882 unsigned char *alpn = next_protos_parse(&alpn_len, alpn_in); in s_client_main()
1889 if (SSL_CTX_set_alpn_protos(ctx, alpn, alpn_len) != 0) { in s_client_main()