Lines Matching defs:ext
753 s->ext.max_fragment_len_mode = ctx->ext.max_fragment_len_mode;
764 s->ext.debug_cb = 0;
765 s->ext.debug_arg = NULL;
766 s->ext.ticket_expected = 0;
767 s->ext.status_type = ctx->ext.status_type;
768 s->ext.status_expected = 0;
769 s->ext.ocsp.ids = NULL;
770 s->ext.ocsp.exts = NULL;
771 s->ext.ocsp.resp = NULL;
772 s->ext.ocsp.resp_len = 0;
775 if (ctx->ext.ecpointformats) {
776 s->ext.ecpointformats =
777 OPENSSL_memdup(ctx->ext.ecpointformats,
778 ctx->ext.ecpointformats_len);
779 if (!s->ext.ecpointformats) {
780 s->ext.ecpointformats_len = 0;
783 s->ext.ecpointformats_len =
784 ctx->ext.ecpointformats_len;
786 if (ctx->ext.supportedgroups) {
787 s->ext.supportedgroups =
788 OPENSSL_memdup(ctx->ext.supportedgroups,
789 ctx->ext.supportedgroups_len
790 * sizeof(*ctx->ext.supportedgroups));
791 if (!s->ext.supportedgroups) {
792 s->ext.supportedgroups_len = 0;
795 s->ext.supportedgroups_len = ctx->ext.supportedgroups_len;
799 s->ext.npn = NULL;
802 if (s->ctx->ext.alpn) {
803 s->ext.alpn = OPENSSL_malloc(s->ctx->ext.alpn_len);
804 if (s->ext.alpn == NULL) {
805 s->ext.alpn_len = 0;
808 memcpy(s->ext.alpn, s->ctx->ext.alpn, s->ctx->ext.alpn_len);
809 s->ext.alpn_len = s->ctx->ext.alpn_len;
1056 if (s->ext.hostname == NULL) {
1224 OPENSSL_free(s->ext.hostname);
1226 OPENSSL_free(s->ext.ecpointformats);
1227 OPENSSL_free(s->ext.peer_ecpointformats);
1228 OPENSSL_free(s->ext.supportedgroups);
1229 OPENSSL_free(s->ext.peer_supportedgroups);
1230 sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, X509_EXTENSION_free);
1232 sk_OCSP_RESPID_pop_free(s->ext.ocsp.ids, OCSP_RESPID_free);
1236 OPENSSL_free(s->ext.scts);
1238 OPENSSL_free(s->ext.ocsp.resp);
1239 OPENSSL_free(s->ext.alpn);
1240 OPENSSL_free(s->ext.tls13_cookie);
1260 OPENSSL_free(s->ext.npn);
1938 if (s->ext.early_data == SSL_EARLY_DATA_ACCEPTED) {
1966 return s->ext.early_data;
2174 || ((s->session == NULL || s->session->ext.max_early_data == 0)
2352 if ((SSL_in_init(s) && s->ext.extra_tickets_expected == 0)
2356 s->ext.extra_tickets_expected++;
2870 return s->session->ext.hostname;
2895 if (s->ext.hostname == NULL
2898 return s->session->ext.hostname;
2900 if (!SSL_IS_TLS13(s) && s->hit && s->session->ext.hostname != NULL)
2901 return s->session->ext.hostname;
2905 return s->ext.hostname;
3002 *data = s->ext.npn;
3006 *len = (unsigned int)s->ext.npn_len;
3024 ctx->ext.npn_advertised_cb = cb;
3025 ctx->ext.npn_advertised_cb_arg = arg;
3042 ctx->ext.npn_select_cb = cb;
3043 ctx->ext.npn_select_cb_arg = arg;
3071 OPENSSL_free(ctx->ext.alpn);
3072 ctx->ext.alpn = NULL;
3073 ctx->ext.alpn_len = 0;
3085 OPENSSL_free(ctx->ext.alpn);
3086 ctx->ext.alpn = alpn;
3087 ctx->ext.alpn_len = protos_len;
3103 OPENSSL_free(ssl->ext.alpn);
3104 ssl->ext.alpn = NULL;
3105 ssl->ext.alpn_len = 0;
3117 OPENSSL_free(ssl->ext.alpn);
3118 ssl->ext.alpn = alpn;
3119 ssl->ext.alpn_len = protos_len;
3133 ctx->ext.alpn_select_cb = cb;
3134 ctx->ext.alpn_select_cb_arg = arg;
3335 if ((ret->ext.secure = OPENSSL_secure_zalloc(sizeof(*ret->ext.secure))) == NULL)
3346 if ((RAND_bytes_ex(libctx, ret->ext.tick_key_name,
3347 sizeof(ret->ext.tick_key_name), 0) <= 0)
3348 || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_hmac_key,
3349 sizeof(ret->ext.secure->tick_hmac_key), 0) <= 0)
3350 || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_aes_key,
3351 sizeof(ret->ext.secure->tick_aes_key), 0) <= 0))
3354 if (RAND_priv_bytes_ex(libctx, ret->ext.cookie_hmac_key,
3355 sizeof(ret->ext.cookie_hmac_key), 0) <= 0)
3390 ret->ext.status_type = TLSEXT_STATUSTYPE_nothing;
3503 OPENSSL_free(a->ext.ecpointformats);
3504 OPENSSL_free(a->ext.supportedgroups);
3505 OPENSSL_free(a->ext.supported_groups_default);
3506 OPENSSL_free(a->ext.alpn);
3507 OPENSSL_secure_free(a->ext.secure);
5037 if (s->ext.scts != NULL) {
5038 const unsigned char *p = s->ext.scts;
5039 STACK_OF(SCT) *scts = o2i_SCT_LIST(NULL, &p, s->ext.scts_len);
5067 if (s->ext.ocsp.resp == NULL || s->ext.ocsp.resp_len == 0)
5070 p = s->ext.ocsp.resp;
5071 rsp = d2i_OCSP_RESPONSE(NULL, &p, (int)s->ext.ocsp.resp_len);
5433 RAW_EXTENSION *ext;
5440 ext = s->clienthello->pre_proc_exts + i;
5441 if (ext->present)
5454 ext = s->clienthello->pre_proc_exts + i;
5455 if (ext->present) {
5456 if (ext->received_order >= num)
5458 present[ext->received_order] = ext->type;
5856 if (ret > 0 && s->ext.cookieok)