Home
last modified time | relevance | path

Searched refs:alpn_selected (Results 1 – 12 of 12) sorted by relevance

/third_party/openssl/ssl/
Dssl_asn1.c43 ASN1_OCTET_STRING *alpn_selected; member
74 ASN1_EXP_OPT(SSL_SESSION_ASN1, alpn_selected, ASN1_OCTET_STRING, 16),
124 ASN1_OCTET_STRING alpn_selected; in i2d_SSL_SESSION() local
189 if (in->ext.alpn_selected == NULL) in i2d_SSL_SESSION()
190 as.alpn_selected = NULL; in i2d_SSL_SESSION()
192 ssl_session_oinit(&as.alpn_selected, &alpn_selected, in i2d_SSL_SESSION()
193 in->ext.alpn_selected, in->ext.alpn_selected_len); in i2d_SSL_SESSION()
359 OPENSSL_free(ret->ext.alpn_selected); in d2i_SSL_SESSION()
360 if (as->alpn_selected != NULL) { in d2i_SSL_SESSION()
361 ret->ext.alpn_selected = as->alpn_selected->data; in d2i_SSL_SESSION()
[all …]
Dssl_sess.c126 dest->ext.alpn_selected = NULL; in ssl_session_dup()
196 if (src->ext.alpn_selected != NULL) { in ssl_session_dup()
197 dest->ext.alpn_selected = OPENSSL_memdup(src->ext.alpn_selected, in ssl_session_dup()
199 if (dest->ext.alpn_selected == NULL) in ssl_session_dup()
774 OPENSSL_free(ss->ext.alpn_selected); in SSL_SESSION_free()
927 *alpn = s->ext.alpn_selected; in SSL_SESSION_get0_alpn_selected()
934 OPENSSL_free(s->ext.alpn_selected); in SSL_SESSION_set1_alpn_selected()
936 s->ext.alpn_selected = NULL; in SSL_SESSION_set1_alpn_selected()
940 s->ext.alpn_selected = OPENSSL_memdup(alpn, len); in SSL_SESSION_set1_alpn_selected()
941 if (s->ext.alpn_selected == NULL) { in SSL_SESSION_set1_alpn_selected()
Dssl_local.h572 unsigned char *alpn_selected; member
1676 unsigned char *alpn_selected; member
Ds3_lib.c3334 OPENSSL_free(s->s3->alpn_selected); in ssl3_free()
3361 OPENSSL_free(s->s3->alpn_selected); in ssl3_clear()
Dssl_lib.c2940 *data = ssl->s3->alpn_selected; in SSL_get0_alpn_selected()
/third_party/grpc/test/core/handshake/
Dserver_ssl_common.cc257 const unsigned char* alpn_selected; in server_ssl_test() local
259 SSL_get0_alpn_selected(ssl, &alpn_selected, &alpn_selected_len); in server_ssl_test()
261 strncmp(reinterpret_cast<const char*>(alpn_selected), alpn_expected, in server_ssl_test()
/third_party/openssl/ssl/statem/
Dextensions_clnt.c847 if ((s->ext.alpn == NULL && edsess->ext.alpn_selected != NULL)) { in tls_construct_ctos_early_data()
857 if (edsess->ext.alpn_selected != NULL) { in tls_construct_ctos_early_data()
867 if (PACKET_equal(&alpnpkt, edsess->ext.alpn_selected, in tls_construct_ctos_early_data()
1640 OPENSSL_free(s->s3->alpn_selected); in tls_parse_stoc_alpn()
1641 s->s3->alpn_selected = OPENSSL_malloc(len); in tls_parse_stoc_alpn()
1642 if (s->s3->alpn_selected == NULL) { in tls_parse_stoc_alpn()
1648 if (!PACKET_copy_bytes(pkt, s->s3->alpn_selected, len)) { in tls_parse_stoc_alpn()
1655 if (s->session->ext.alpn_selected == NULL in tls_parse_stoc_alpn()
1657 || memcmp(s->session->ext.alpn_selected, s->s3->alpn_selected, len) in tls_parse_stoc_alpn()
1667 if (!ossl_assert(s->session->ext.alpn_selected == NULL)) { in tls_parse_stoc_alpn()
[all …]
Dstatem_srvr.c2178 OPENSSL_free(s->s3->alpn_selected); in tls_handle_alpn()
2179 s->s3->alpn_selected = OPENSSL_memdup(selected, selected_len); in tls_handle_alpn()
2180 if (s->s3->alpn_selected == NULL) { in tls_handle_alpn()
2193 if (s->session->ext.alpn_selected == NULL in tls_handle_alpn()
2195 || memcmp(selected, s->session->ext.alpn_selected, in tls_handle_alpn()
2206 if (!ossl_assert(s->session->ext.alpn_selected == NULL)) { in tls_handle_alpn()
2212 s->session->ext.alpn_selected = OPENSSL_memdup(selected, in tls_handle_alpn()
2214 if (s->session->ext.alpn_selected == NULL) { in tls_handle_alpn()
2237 if (s->session->ext.alpn_selected != NULL) { in tls_handle_alpn()
4125 if (s->s3->alpn_selected != NULL) { in tls_construct_new_session_ticket()
[all …]
Dextensions.c1117 OPENSSL_free(s->s3->alpn_selected); in init_alpn()
1118 s->s3->alpn_selected = NULL; in init_alpn()
1130 if (!s->server && !sent && s->session->ext.alpn_selected != NULL) in final_alpn()
Dextensions_srvr.c1571 if (s->s3->alpn_selected == NULL) in tls_construct_stoc_alpn()
1578 || !WPACKET_sub_memcpy_u8(pkt, s->s3->alpn_selected, in tls_construct_stoc_alpn()
/third_party/grpc/src/core/tsi/
Dssl_transport_security.cc1228 const unsigned char* alpn_selected = nullptr; in ssl_handshaker_result_extract_peer() local
1239 SSL_get0_alpn_selected(impl->ssl, &alpn_selected, &alpn_selected_len); in ssl_handshaker_result_extract_peer()
1241 if (alpn_selected == nullptr) { in ssl_handshaker_result_extract_peer()
1243 SSL_get0_next_proto_negotiated(impl->ssl, &alpn_selected, in ssl_handshaker_result_extract_peer()
1252 if (alpn_selected != nullptr) new_property_count++; in ssl_handshaker_result_extract_peer()
1267 if (alpn_selected != nullptr) { in ssl_handshaker_result_extract_peer()
1270 reinterpret_cast<const char*>(alpn_selected), alpn_selected_len, in ssl_handshaker_result_extract_peer()
/third_party/openssl/test/
Dssltest_old.c202 static unsigned char *alpn_selected; variable
322 alpn_selected = OPENSSL_malloc(*outlen); in cb_server_alpn()
323 memcpy(alpn_selected, *out, *outlen); in cb_server_alpn()
324 *out = alpn_selected; in cb_server_alpn()
337 OPENSSL_free(alpn_selected); in verify_alpn()
338 alpn_selected = NULL; in verify_alpn()