Lines Matching defs:proxy

140 	url_hport_t	*proxy;
194 * Description: Resolves proxy specification
197 * proxy - Location to store result - if *proxy is not
201 * on success, *proxy and *port are set to either
202 * the user-supplied proxy and port, or the
207 get_proxy_port(PKG_ERR *err, char **proxy, ushort_t *port)
209 if (*proxy != NULL) {
210 if (!path_valid(*proxy)) {
211 /* bad proxy supplied */
213 gettext(ERR_BAD_PROXY), *proxy);
221 if (!get_ENV_proxy(err, proxy)) {
225 if ((*proxy != NULL) && !path_valid(*proxy)) {
228 gettext(ERR_BAD_PROXY), *proxy);
336 * proxy - HTTP proxy to use, or NULL for no proxy
337 * proxy_port - HTTP proxy port to use, ignored
338 * if proxy is NULL
351 keystore_handle_t keystore, char *proxy, ushort_t proxy_port,
363 if (!parse_url_proxy(err, url, proxy, proxy_port)) {
642 * Arguments: proxy - full "hostname:port" string pointer
649 strip_port(char *proxy)
653 if ((tmp_port = strpbrk(proxy, ":")) != NULL)
756 * proxy - Proxy to use when doing online validation (OCSP)
766 url_hport_t *proxy, int nointeract)
804 proxy, nointeract)) {
828 * proxy - Proxy to use when doing online validation (OCSP)
837 STACK_OF(X509) *cas, url_hport_t *proxy, int nointeract)
923 verify_data.proxy = proxy;
1037 url_hport_t *proxy;
1048 proxy = ((verify_cb_data_t *)X509_STORE_CTX_get_app_data(ctx))->proxy;
1089 uri, proxy, cas)) {
1203 char *uri, url_hport_t *proxy, STACK_OF(X509) *cas)
1270 /* connect to host, or proxy */
1271 if (proxy != NULL) {
1272 if ((cbio = BIO_new_connect(proxy->hostname)) == NULL) {
1281 port = proxy->port;
1286 proxy->hostname, port);
1308 if (proxy != NULL) {
1603 * Description: Parses URL and optional proxy specification, populates static
1608 * proxy - proxy to parse, or NULL for no proxy
1609 * proxy_port - Default proxy port to use if no proxy
1610 * port specified in 'proxy'
1613 * on success, 'ps->url' and 'ps->proxy' are populated
1617 parse_url_proxy(PKG_ERR *err, char *url, char *proxy, ushort_t proxy_port)
1631 if (proxy != NULL) {
1632 if (url_parse_hostport(proxy, &ps->proxy, proxy_port)
1635 gettext(ERR_BAD_PROXY), proxy);
1669 if (ps->proxy.hostname[0] != '\0' &&
1670 http_set_proxy(ps->hps, &ps->proxy) != 0) {
2857 * Description: Retrieves setting of proxy env variable
2860 * proxy - where to store proxy
2862 * Returns : B_TRUE - http proxy was found and valid, stored in proxy
2866 get_ENV_proxy(PKG_ERR *err, char **proxy)
2876 *proxy = buf;
2893 /* skip over the http:// part of the proxy "url" */
2894 *proxy = buf + 7;