Lines Matching refs:needle

677                    const struct proxy_info *needle)  in proxy_info_matches()  argument
679 if((data->proxytype == needle->proxytype) && in proxy_info_matches()
680 (data->port == needle->port) && in proxy_info_matches()
681 strcasecompare(data->host.name, needle->host.name)) in proxy_info_matches()
689 const struct proxy_info *needle) in socks_proxy_info_matches() argument
691 if(!proxy_info_matches(data, needle)) in socks_proxy_info_matches()
700 if(Curl_timestrcmp(data->user, needle->user) || in socks_proxy_info_matches()
701 Curl_timestrcmp(data->passwd, needle->passwd)) in socks_proxy_info_matches()
852 struct connectdata *needle; member
868 struct connectdata *needle = match->needle; in url_match_conn() local
882 if(needle->localdev || needle->localport) { in url_match_conn()
894 if((conn->localport != needle->localport) || in url_match_conn()
895 (conn->localportrange != needle->localportrange) || in url_match_conn()
896 (needle->localdev && in url_match_conn()
897 (!conn->localdev || strcmp(conn->localdev, needle->localdev)))) in url_match_conn()
901 if(needle->bits.conn_to_host != conn->bits.conn_to_host) in url_match_conn()
906 if(needle->bits.conn_to_port != conn->bits.conn_to_port) in url_match_conn()
949 if(needle->unix_domain_socket) { in url_match_conn()
952 if(strcmp(needle->unix_domain_socket, conn->unix_domain_socket)) in url_match_conn()
954 if(needle->bits.abstract_unix_socket != conn->bits.abstract_unix_socket) in url_match_conn()
961 if((needle->handler->flags&PROTOPT_SSL) != in url_match_conn()
965 needle->handler->protocol || !conn->bits.tls_upgraded) in url_match_conn()
970 if(needle->bits.httpproxy != conn->bits.httpproxy || in url_match_conn()
971 needle->bits.socksproxy != conn->bits.socksproxy) in url_match_conn()
974 if(needle->bits.socksproxy && in url_match_conn()
975 !socks_proxy_info_matches(&needle->socks_proxy, in url_match_conn()
979 if(needle->bits.httpproxy) { in url_match_conn()
980 if(needle->bits.tunnel_proxy != conn->bits.tunnel_proxy) in url_match_conn()
983 if(!proxy_info_matches(&needle->http_proxy, &conn->http_proxy)) in url_match_conn()
986 if(IS_HTTPS_PROXY(needle->http_proxy.proxytype)) { in url_match_conn()
988 if(needle->http_proxy.proxytype != conn->http_proxy.proxytype) in url_match_conn()
1006 (needle->handler->protocol & CURLPROTO_HTTP) && in url_match_conn()
1018 if(!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) { in url_match_conn()
1021 if(Curl_timestrcmp(needle->user, conn->user) || in url_match_conn()
1022 Curl_timestrcmp(needle->passwd, conn->passwd) || in url_match_conn()
1023 Curl_timestrcmp(needle->sasl_authzid, conn->sasl_authzid) || in url_match_conn()
1024 Curl_timestrcmp(needle->oauth_bearer, conn->oauth_bearer)) { in url_match_conn()
1032 if(needle->gssapi_delegation != conn->gssapi_delegation) in url_match_conn()
1039 if((needle->handler->protocol & PROTO_FAMILY_HTTP) && in url_match_conn()
1056 else if(get_protocol_family(needle->handler) & PROTO_FAMILY_SSH) { in url_match_conn()
1057 if(!ssh_config_matches(needle, conn)) in url_match_conn()
1062 else if(get_protocol_family(needle->handler) & PROTO_FAMILY_FTP) { in url_match_conn()
1064 if(Curl_timestrcmp(needle->proto.ftpc.account, in url_match_conn()
1066 Curl_timestrcmp(needle->proto.ftpc.alternative_to_user, in url_match_conn()
1068 (needle->proto.ftpc.use_ssl != conn->proto.ftpc.use_ssl) || in url_match_conn()
1069 (needle->proto.ftpc.ccc != conn->proto.ftpc.ccc)) in url_match_conn()
1076 if((needle->handler->flags&PROTOPT_SSL) in url_match_conn()
1078 || !needle->bits.httpproxy || needle->bits.tunnel_proxy in url_match_conn()
1083 if(!strcasecompare(needle->handler->scheme, conn->handler->scheme) && in url_match_conn()
1085 needle->handler->protocol || !conn->bits.tls_upgraded)) in url_match_conn()
1089 if((needle->bits.conn_to_host && !strcasecompare( in url_match_conn()
1090 needle->conn_to_host.name, conn->conn_to_host.name)) || in url_match_conn()
1091 (needle->bits.conn_to_port && in url_match_conn()
1092 needle->conn_to_port != conn->conn_to_port)) in url_match_conn()
1096 if(!strcasecompare(needle->host.name, conn->host.name) || in url_match_conn()
1097 needle->remote_port != conn->remote_port) in url_match_conn()
1101 if((needle->handler->flags & PROTOPT_SSL) && in url_match_conn()
1118 if(Curl_timestrcmp(needle->user, conn->user) || in url_match_conn()
1119 Curl_timestrcmp(needle->passwd, conn->passwd)) { in url_match_conn()
1141 if(Curl_timestrcmp(needle->http_proxy.user, in url_match_conn()
1143 Curl_timestrcmp(needle->http_proxy.passwd, in url_match_conn()
1240 struct connectdata *needle, in ConnectionExists() argument
1250 match.needle = needle; in ConnectionExists()
1251 match.may_multiplex = xfer_may_multiplex(data, needle); in ConnectionExists()
1255 (needle->handler->protocol & PROTO_FAMILY_HTTP)); in ConnectionExists()
1258 (needle->bits.proxy_user_passwd && in ConnectionExists()
1260 (needle->handler->protocol & PROTO_FAMILY_HTTP)); in ConnectionExists()
1266 result = Curl_cpool_find(data, needle->destination, needle->destination_len, in ConnectionExists()