Lines Matching refs:ext
144 OPENSSL_free(s->ext.hostname); in tls_parse_ctos_server_name()
145 s->ext.hostname = NULL; in tls_parse_ctos_server_name()
146 if (!PACKET_strndup(&hostname, &s->ext.hostname)) { in tls_parse_ctos_server_name()
158 s->servername_done = (s->session->ext.hostname != NULL) in tls_parse_ctos_server_name()
159 && PACKET_equal(&hostname, s->session->ext.hostname, in tls_parse_ctos_server_name()
160 strlen(s->session->ext.hostname)); in tls_parse_ctos_server_name()
197 if (s->session->ext.max_fragment_len_mode == TLSEXT_max_fragment_length_UNSPECIFIED) in tls_parse_ctos_maxfragmentlen()
202 s->session->ext.max_fragment_len_mode = value; in tls_parse_ctos_maxfragmentlen()
241 &s->ext.peer_ecpointformats, in tls_parse_ctos_ec_pt_formats()
242 &s->ext.peer_ecpointformats_len)) { in tls_parse_ctos_ec_pt_formats()
254 if (s->ext.session_ticket_cb && in tls_parse_ctos_session_ticket()
255 !s->ext.session_ticket_cb(s, PACKET_data(pkt), in tls_parse_ctos_session_ticket()
257 s->ext.session_ticket_cb_arg)) { in tls_parse_ctos_session_ticket()
319 if (!PACKET_get_1(pkt, (unsigned int *)&s->ext.status_type)) { in tls_parse_ctos_status_request()
324 if (s->ext.status_type != TLSEXT_STATUSTYPE_ocsp) { in tls_parse_ctos_status_request()
328 s->ext.status_type = TLSEXT_STATUSTYPE_nothing; in tls_parse_ctos_status_request()
341 sk_OCSP_RESPID_pop_free(s->ext.ocsp.ids, OCSP_RESPID_free); in tls_parse_ctos_status_request()
343 s->ext.ocsp.ids = sk_OCSP_RESPID_new_null(); in tls_parse_ctos_status_request()
344 if (s->ext.ocsp.ids == NULL) { in tls_parse_ctos_status_request()
349 s->ext.ocsp.ids = NULL; in tls_parse_ctos_status_request()
378 if (!sk_OCSP_RESPID_push(s->ext.ocsp.ids, id)) { in tls_parse_ctos_status_request()
395 sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, in tls_parse_ctos_status_request()
397 s->ext.ocsp.exts = in tls_parse_ctos_status_request()
399 if (s->ext.ocsp.exts == NULL || ext_data != PACKET_end(&exts)) { in tls_parse_ctos_status_request()
536 s->ext.use_etm = 1; in tls_parse_ctos_etm()
560 s->ext.psk_kex_mode |= TLSEXT_KEX_MODE_FLAG_KE_DHE; in tls_parse_ctos_psk_kex_modes()
563 s->ext.psk_kex_mode |= TLSEXT_KEX_MODE_FLAG_KE; in tls_parse_ctos_psk_kex_modes()
584 if (s->hit && (s->ext.psk_kex_mode & TLSEXT_KEX_MODE_FLAG_KE_DHE) == 0) in tls_parse_ctos_key_share()
731 s->session_ctx->ext.cookie_hmac_key, in tls_parse_ctos_cookie()
732 sizeof(s->session_ctx->ext.cookie_hmac_key)); in tls_parse_ctos_cookie()
893 s->ext.cookieok = 1; in tls_parse_ctos_cookie()
913 OPENSSL_free(s->ext.peer_supportedgroups); in tls_parse_ctos_supported_groups()
914 s->ext.peer_supportedgroups = NULL; in tls_parse_ctos_supported_groups()
915 s->ext.peer_supportedgroups_len = 0; in tls_parse_ctos_supported_groups()
917 &s->ext.peer_supportedgroups, in tls_parse_ctos_supported_groups()
918 &s->ext.peer_supportedgroups_len)) { in tls_parse_ctos_supported_groups()
966 s->ext.ticket_expected = 1; in tls_get_stateful_ticket()
995 unsigned int id, i, ext = 0; in tls_parse_ctos_psk() local
1002 if ((s->ext.psk_kex_mode in tls_parse_ctos_psk()
1011 s->ext.ticket_expected = 0; in tls_parse_ctos_psk()
1097 ext = 1; in tls_parse_ctos_psk()
1099 s->ext.early_data_ok = 1; in tls_parse_ctos_psk()
1100 s->ext.ticket_expected = 1; in tls_parse_ctos_psk()
1144 ticket_age -= sess->ext.tick_age_add; in tls_parse_ctos_psk()
1163 s->ext.early_data_ok = 1; in tls_parse_ctos_psk()
1178 s->ext.early_data_ok = 0; in tls_parse_ctos_psk()
1179 s->ext.ticket_expected = 0; in tls_parse_ctos_psk()
1209 ext) != 1) { in tls_parse_ctos_psk()
1214 s->ext.tick_identity = id; in tls_parse_ctos_psk()
1304 || !WPACKET_put_bytes_u8(pkt, s->session->ext.max_fragment_len_mode) in tls_construct_stoc_maxfragmentlen()
1320 && (s->ext.peer_ecpointformats != NULL); in tls_construct_stoc_ec_pt_formats()
1403 if (!s->ext.ticket_expected || !tls_use_ticket(s)) { in tls_construct_stoc_session_ticket()
1404 s->ext.ticket_expected = 0; in tls_construct_stoc_session_ticket()
1426 if (!s->ext.status_expected) in tls_construct_stoc_status_request()
1467 if (!npn_seen || s->ctx->ext.npn_advertised_cb == NULL) in tls_construct_stoc_next_proto_neg()
1470 ret = s->ctx->ext.npn_advertised_cb(s, &npa, &npalen, in tls_construct_stoc_next_proto_neg()
1471 s->ctx->ext.npn_advertised_cb_arg); in tls_construct_stoc_next_proto_neg()
1532 if (!s->ext.use_etm) in tls_construct_stoc_etm()
1545 s->ext.use_etm = 0; in tls_construct_stoc_etm()
1627 if (s->hit && (s->ext.psk_kex_mode & TLSEXT_KEX_MODE_FLAG_KE_DHE) == 0) { in tls_construct_stoc_key_share()
1809 s->session_ctx->ext.cookie_hmac_key, in tls_construct_stoc_cookie()
1810 sizeof(s->session_ctx->ext.cookie_hmac_key)); in tls_construct_stoc_cookie()
1894 if (s->ext.early_data != SSL_EARLY_DATA_ACCEPTED) in tls_construct_stoc_early_data()
1915 || !WPACKET_put_bytes_u16(pkt, s->ext.tick_identity) in tls_construct_stoc_psk()