Home
last modified time | relevance | path

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

/external/libwebsockets/lib/tls/mbedtls/wrapper/library/
Dssl_lib.c241 if (ctx->alpn_protos) in SSL_CTX_free()
242 ssl_mem_free(ctx->alpn_protos); in SSL_CTX_free()
356 if (ssl->alpn_protos) in SSL_free()
357 ssl_mem_free(ssl->alpn_protos); in SSL_free()
1144 char **alpn_protos; in _openssl_alpn_to_mbedtls() local
1170 alpn_protos = ssl_mem_zalloc((count + 1) * sizeof(char *) + ac->len + 1); in _openssl_alpn_to_mbedtls()
1171 if (!alpn_protos) in _openssl_alpn_to_mbedtls()
1174 *palpn_protos = alpn_protos; in _openssl_alpn_to_mbedtls()
1178 q = (unsigned char *)alpn_protos + (count + 1) * sizeof(char *); in _openssl_alpn_to_mbedtls()
1183 alpn_protos[count] = (char *)q; in _openssl_alpn_to_mbedtls()
[all …]
/external/webrtc/rtc_base/
Dopenssl_adapter_unittest.cc73 std::vector<std::string> alpn_protos{"h2"}; in TEST() local
76 EXPECT_EQ(expected_response.str(), TransformAlpnProtocols(alpn_protos)); in TEST()
79 alpn_protos.push_back("http/1.1"); in TEST()
81 EXPECT_EQ(expected_response.str(), TransformAlpnProtocols(alpn_protos)); in TEST()
Dssl_adapter_unittest.cc530 std::vector<std::string> alpn_protos{"h2", "http/1.1"}; in TEST_F() local
531 SetAlpnProtocols(alpn_protos); in TEST_F()
/external/grpc-grpc/test/core/handshake/
Dserver_ssl_common.cc184 unsigned char* alpn_protos = in server_ssl_test() local
186 unsigned char* p = alpn_protos; in server_ssl_test()
193 GPR_ASSERT(SSL_CTX_set_alpn_protos(ctx, alpn_protos, alpn_protos_len) == 0); in server_ssl_test()
232 gpr_free(alpn_protos); in server_ssl_test()
/external/boringssl/src/tool/
Dclient.cc427 const std::string &alpn_protos = args_map["-alpn-protos"]; in Client() local
430 while (i <= alpn_protos.size()) { in Client()
431 size_t j = alpn_protos.find(',', i); in Client()
433 j = alpn_protos.size(); in Client()
437 fprintf(stderr, "Invalid ALPN protocols: '%s'\n", alpn_protos.c_str()); in Client()
442 OPENSSL_memcpy(wire.data() + wire.size() - len, alpn_protos.data() + i, in Client()
/external/rust/crates/quiche/deps/boringssl/src/tool/
Dclient.cc427 const std::string &alpn_protos = args_map["-alpn-protos"]; in Client() local
430 while (i <= alpn_protos.size()) { in Client()
431 size_t j = alpn_protos.find(',', i); in Client()
433 j = alpn_protos.size(); in Client()
437 fprintf(stderr, "Invalid ALPN protocols: '%s'\n", alpn_protos.c_str()); in Client()
442 OPENSSL_memcpy(wire.data() + wire.size() - len, alpn_protos.data() + i, in Client()
/external/libwebsockets/lib/tls/mbedtls/wrapper/include/internal/
Dssl_types.h180 const char **alpn_protos; member
215 const char **alpn_protos; member
/external/libwebsockets/lib/tls/mbedtls/wrapper/platform/
Dssl_pm.c842 if (ssl->alpn_protos) { in _ssl_set_alpn_list()
843 if (mbedtls_ssl_conf_alpn_protocols(&((struct ssl_pm *)(ssl->ssl_pm))->conf, ssl->alpn_protos)) in _ssl_set_alpn_list()
848 if (!ssl->ctx->alpn_protos) in _ssl_set_alpn_list()
850 …if (mbedtls_ssl_conf_alpn_protocols(&((struct ssl_pm *)(ssl->ssl_pm))->conf, ssl->ctx->alpn_protos in _ssl_set_alpn_list()