Lines Matching refs:needle

675                    const struct proxy_info *needle)  in proxy_info_matches()  argument
677 if((data->proxytype == needle->proxytype) && in proxy_info_matches()
678 (data->port == needle->port) && in proxy_info_matches()
679 strcasecompare(data->host.name, needle->host.name)) in proxy_info_matches()
687 const struct proxy_info *needle) in socks_proxy_info_matches() argument
689 if(!proxy_info_matches(data, needle)) in socks_proxy_info_matches()
698 if(Curl_timestrcmp(data->user, needle->user) || in socks_proxy_info_matches()
699 Curl_timestrcmp(data->passwd, needle->passwd)) in socks_proxy_info_matches()
850 struct connectdata *needle; member
866 struct connectdata *needle = match->needle; in url_match_conn() local
880 if(needle->localdev || needle->localport) { in url_match_conn()
892 if((conn->localport != needle->localport) || in url_match_conn()
893 (conn->localportrange != needle->localportrange) || in url_match_conn()
894 (needle->localdev && in url_match_conn()
895 (!conn->localdev || strcmp(conn->localdev, needle->localdev)))) in url_match_conn()
899 if(needle->bits.conn_to_host != conn->bits.conn_to_host) in url_match_conn()
904 if(needle->bits.conn_to_port != conn->bits.conn_to_port) in url_match_conn()
947 if(needle->unix_domain_socket) { in url_match_conn()
950 if(strcmp(needle->unix_domain_socket, conn->unix_domain_socket)) in url_match_conn()
952 if(needle->bits.abstract_unix_socket != conn->bits.abstract_unix_socket) in url_match_conn()
959 if((needle->handler->flags&PROTOPT_SSL) != in url_match_conn()
963 needle->handler->protocol || !conn->bits.tls_upgraded) in url_match_conn()
968 if(needle->bits.httpproxy != conn->bits.httpproxy || in url_match_conn()
969 needle->bits.socksproxy != conn->bits.socksproxy) in url_match_conn()
972 if(needle->bits.socksproxy && in url_match_conn()
973 !socks_proxy_info_matches(&needle->socks_proxy, in url_match_conn()
977 if(needle->bits.httpproxy) { in url_match_conn()
978 if(needle->bits.tunnel_proxy != conn->bits.tunnel_proxy) in url_match_conn()
981 if(!proxy_info_matches(&needle->http_proxy, &conn->http_proxy)) in url_match_conn()
984 if(IS_HTTPS_PROXY(needle->http_proxy.proxytype)) { in url_match_conn()
986 if(needle->http_proxy.proxytype != conn->http_proxy.proxytype) in url_match_conn()
1004 (needle->handler->protocol & CURLPROTO_HTTP) && in url_match_conn()
1016 if(!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) { in url_match_conn()
1019 if(Curl_timestrcmp(needle->user, conn->user) || in url_match_conn()
1020 Curl_timestrcmp(needle->passwd, conn->passwd) || in url_match_conn()
1021 Curl_timestrcmp(needle->sasl_authzid, conn->sasl_authzid) || in url_match_conn()
1022 Curl_timestrcmp(needle->oauth_bearer, conn->oauth_bearer)) { in url_match_conn()
1030 if(needle->gssapi_delegation != conn->gssapi_delegation) in url_match_conn()
1037 if((needle->handler->protocol & PROTO_FAMILY_HTTP) && in url_match_conn()
1054 else if(get_protocol_family(needle->handler) & PROTO_FAMILY_SSH) { in url_match_conn()
1055 if(!ssh_config_matches(needle, conn)) in url_match_conn()
1060 else if(get_protocol_family(needle->handler) & PROTO_FAMILY_FTP) { in url_match_conn()
1062 if(Curl_timestrcmp(needle->proto.ftpc.account, in url_match_conn()
1064 Curl_timestrcmp(needle->proto.ftpc.alternative_to_user, in url_match_conn()
1066 (needle->proto.ftpc.use_ssl != conn->proto.ftpc.use_ssl) || in url_match_conn()
1067 (needle->proto.ftpc.ccc != conn->proto.ftpc.ccc)) in url_match_conn()
1074 if((needle->handler->flags&PROTOPT_SSL) in url_match_conn()
1076 || !needle->bits.httpproxy || needle->bits.tunnel_proxy in url_match_conn()
1081 if(!strcasecompare(needle->handler->scheme, conn->handler->scheme) && in url_match_conn()
1083 needle->handler->protocol || !conn->bits.tls_upgraded)) in url_match_conn()
1087 if((needle->bits.conn_to_host && !strcasecompare( in url_match_conn()
1088 needle->conn_to_host.name, conn->conn_to_host.name)) || in url_match_conn()
1089 (needle->bits.conn_to_port && in url_match_conn()
1090 needle->conn_to_port != conn->conn_to_port)) in url_match_conn()
1094 if(!strcasecompare(needle->host.name, conn->host.name) || in url_match_conn()
1095 needle->remote_port != conn->remote_port) in url_match_conn()
1099 if((needle->handler->flags & PROTOPT_SSL) && in url_match_conn()
1116 if(Curl_timestrcmp(needle->user, conn->user) || in url_match_conn()
1117 Curl_timestrcmp(needle->passwd, conn->passwd)) { in url_match_conn()
1139 if(Curl_timestrcmp(needle->http_proxy.user, in url_match_conn()
1141 Curl_timestrcmp(needle->http_proxy.passwd, in url_match_conn()
1238 struct connectdata *needle, in ConnectionExists() argument
1248 match.needle = needle; in ConnectionExists()
1249 match.may_multiplex = Curl_xfer_may_multiplex(data, needle); in ConnectionExists()
1253 (needle->handler->protocol & PROTO_FAMILY_HTTP)); in ConnectionExists()
1256 (needle->bits.proxy_user_passwd && in ConnectionExists()
1258 (needle->handler->protocol & PROTO_FAMILY_HTTP)); in ConnectionExists()
1264 result = Curl_cpool_find(data, needle->destination, needle->destination_len, in ConnectionExists()