Lines Matching defs:proxy
139 url_hport_t *proxy;
193 * Description: Resolves proxy specification
196 * proxy - Location to store result - if *proxy is not
200 * on success, *proxy and *port are set to either
201 * the user-supplied proxy and port, or the
206 get_proxy_port(PKG_ERR *err, char **proxy, ushort_t *port)
208 if (*proxy != NULL) {
209 if (!path_valid(*proxy)) {
210 /* bad proxy supplied */
212 gettext(ERR_BAD_PROXY), *proxy);
220 if (!get_ENV_proxy(err, proxy)) {
224 if ((*proxy != NULL) && !path_valid(*proxy)) {
227 gettext(ERR_BAD_PROXY), *proxy);
335 * proxy - HTTP proxy to use, or NULL for no proxy
336 * proxy_port - HTTP proxy port to use, ignored
337 * if proxy is NULL
350 keystore_handle_t keystore, char *proxy, ushort_t proxy_port,
362 if (!parse_url_proxy(err, url, proxy, proxy_port)) {
640 * Arguments: proxy - full "hostname:port" string pointer
647 strip_port(char *proxy)
651 if ((tmp_port = strpbrk(proxy, ":")) != NULL)
754 * proxy - Proxy to use when doing online validation (OCSP)
764 url_hport_t *proxy, int nointeract)
802 proxy, nointeract)) {
826 * proxy - Proxy to use when doing online validation (OCSP)
835 STACK_OF(X509) *cas, url_hport_t *proxy, int nointeract)
921 verify_data.proxy = proxy;
1034 url_hport_t *proxy;
1045 proxy = ((verify_cb_data_t *)X509_STORE_CTX_get_app_data(ctx))->proxy;
1086 uri, proxy, cas)) {
1200 char *uri, url_hport_t *proxy, STACK_OF(X509) *cas)
1267 /* connect to host, or proxy */
1268 if (proxy != NULL) {
1269 if ((cbio = BIO_new_connect(proxy->hostname)) == NULL) {
1278 port = proxy->port;
1283 proxy->hostname, port);
1305 if (proxy != NULL) {
1600 * Description: Parses URL and optional proxy specification, populates static
1605 * proxy - proxy to parse, or NULL for no proxy
1606 * proxy_port - Default proxy port to use if no proxy
1607 * port specified in 'proxy'
1610 * on success, 'ps->url' and 'ps->proxy' are populated
1614 parse_url_proxy(PKG_ERR *err, char *url, char *proxy, ushort_t proxy_port)
1628 if (proxy != NULL) {
1629 if (url_parse_hostport(proxy, &ps->proxy, proxy_port)
1632 gettext(ERR_BAD_PROXY), proxy);
1666 if (ps->proxy.hostname[0] != '\0' &&
1667 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;