Home
last modified time | relevance | path

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

/openssl/ssl/
H A Dssl_asn1.c44 ASN1_OCTET_STRING *alpn_selected; member
129 ASN1_OCTET_STRING alpn_selected; in i2d_SSL_SESSION() local
206 if (in->ext.alpn_selected == NULL) in i2d_SSL_SESSION()
207 as.alpn_selected = NULL; in i2d_SSL_SESSION()
209 ssl_session_oinit(&as.alpn_selected, &alpn_selected, in i2d_SSL_SESSION()
399 OPENSSL_free(ret->ext.alpn_selected); in d2i_SSL_SESSION_ex()
400 if (as->alpn_selected != NULL) { in d2i_SSL_SESSION_ex()
401 ret->ext.alpn_selected = as->alpn_selected->data; in d2i_SSL_SESSION_ex()
402 ret->ext.alpn_selected_len = as->alpn_selected->length; in d2i_SSL_SESSION_ex()
403 as->alpn_selected->data = NULL; in d2i_SSL_SESSION_ex()
[all …]
H A Dssl_sess.c159 dest->ext.alpn_selected = NULL; in ssl_session_dup_intern()
241 if (src->ext.alpn_selected != NULL) { in ssl_session_dup_intern()
242 dest->ext.alpn_selected = OPENSSL_memdup(src->ext.alpn_selected, in ssl_session_dup_intern()
244 if (dest->ext.alpn_selected == NULL) in ssl_session_dup_intern()
868 OPENSSL_free(ss->ext.alpn_selected); in SSL_SESSION_free()
1064 *alpn = s->ext.alpn_selected; in SSL_SESSION_get0_alpn_selected()
1071 OPENSSL_free(s->ext.alpn_selected); in SSL_SESSION_set1_alpn_selected()
1073 s->ext.alpn_selected = NULL; in SSL_SESSION_set1_alpn_selected()
1077 s->ext.alpn_selected = OPENSSL_memdup(alpn, len); in SSL_SESSION_set1_alpn_selected()
1078 if (s->ext.alpn_selected == NULL) { in SSL_SESSION_set1_alpn_selected()
H A Dssl_local.h543 unsigned char *alpn_selected; member
1411 unsigned char *alpn_selected; member
H A Ds3_lib.c3428 OPENSSL_free(sc->s3.alpn_selected); in ssl3_free()
3463 OPENSSL_free(sc->s3.alpn_selected); in ssl3_clear()
H A Dssl_lib.c3778 *data = sc->s3.alpn_selected; in SSL_get0_alpn_selected()
/openssl/ssl/statem/
H A Dextensions_clnt.c891 if (edsess->ext.alpn_selected != NULL) { in tls_construct_ctos_early_data()
900 if (PACKET_equal(&alpnpkt, edsess->ext.alpn_selected, in tls_construct_ctos_early_data()
1674 OPENSSL_free(s->s3.alpn_selected); in tls_parse_stoc_alpn()
1675 s->s3.alpn_selected = OPENSSL_malloc(len); in tls_parse_stoc_alpn()
1676 if (s->s3.alpn_selected == NULL) { in tls_parse_stoc_alpn()
1681 if (!PACKET_copy_bytes(pkt, s->s3.alpn_selected, len)) { in tls_parse_stoc_alpn()
1687 if (s->session->ext.alpn_selected == NULL in tls_parse_stoc_alpn()
1689 || memcmp(s->session->ext.alpn_selected, s->s3.alpn_selected, len) in tls_parse_stoc_alpn()
1699 if (!ossl_assert(s->session->ext.alpn_selected == NULL)) { in tls_parse_stoc_alpn()
1703 s->session->ext.alpn_selected = in tls_parse_stoc_alpn()
[all …]
H A Dstatem_srvr.c2210 OPENSSL_free(s->s3.alpn_selected); in tls_handle_alpn()
2211 s->s3.alpn_selected = OPENSSL_memdup(selected, selected_len); in tls_handle_alpn()
2212 if (s->s3.alpn_selected == NULL) { in tls_handle_alpn()
2224 if (s->session->ext.alpn_selected == NULL in tls_handle_alpn()
2226 || memcmp(selected, s->session->ext.alpn_selected, in tls_handle_alpn()
2244 if (s->session->ext.alpn_selected == NULL) { in tls_handle_alpn()
2266 if (s->session->ext.alpn_selected != NULL) { in tls_handle_alpn()
4238 if (s->s3.alpn_selected != NULL) { in tls_construct_new_session_ticket()
4239 OPENSSL_free(s->session->ext.alpn_selected); in tls_construct_new_session_ticket()
4240 s->session->ext.alpn_selected = in tls_construct_new_session_ticket()
[all …]
H A Dextensions.c1167 OPENSSL_free(s->s3.alpn_selected); in init_alpn()
1168 s->s3.alpn_selected = NULL; in init_alpn()
1180 if (!s->server && !sent && s->session->ext.alpn_selected != NULL) in final_alpn()
H A Dextensions_srvr.c1533 if (s->s3.alpn_selected == NULL) in tls_construct_stoc_alpn()
1540 || !WPACKET_sub_memcpy_u8(pkt, s->s3.alpn_selected, in tls_construct_stoc_alpn()
/openssl/test/
H A Dssl_old_test.c193 static unsigned char *alpn_selected; variable
313 alpn_selected = OPENSSL_malloc(*outlen); in cb_server_alpn()
314 if (alpn_selected == NULL) { in cb_server_alpn()
319 memcpy(alpn_selected, *out, *outlen); in cb_server_alpn()
320 *out = alpn_selected; in cb_server_alpn()
333 OPENSSL_free(alpn_selected); in verify_alpn()
334 alpn_selected = NULL; in verify_alpn()

Completed in 89 milliseconds