Reported-by: Arkadi Vainbrand
Closes #21082
BIT(want_proxy_ntlm_http);
BIT(want_nego_http);
BIT(want_proxy_nego_http);
-
+ BIT(req_tls); /* require TLS use from a clear-text start */
BIT(wait_pipe);
BIT(force_reuse);
BIT(seen_pending_conn);
(get_protocol_family(conn->scheme) != m->needle->scheme->protocol))
return FALSE;
}
+ else if(m->req_tls)
+ /* a clear-text STARTTLS protocol with required TLS */
+ return FALSE;
return TRUE;
}
(needle->scheme->protocol & PROTO_FAMILY_HTTP);
#endif
#endif
+ match.req_tls = data->set.use_ssl >= CURLUSESSL_CONTROL;
/* Find a connection in the pool that matches what "data + needle"
* requires. If a suitable candidate is found, it is attached to "data". */