Lines Matching refs:port

55     char *port;                 /* Optional server port */
132 OPENSSL_free(rctx->port);
167 * Server name (and port) must be given if and only if plain HTTP proxy is used.
170 const char *server, const char *port,
192 if (port != NULL && BIO_printf(rctx->mem, ":%s", port) <= 0)
368 const char *server, const char *port,
385 if (port != NULL
386 && (rctx->port = OPENSSL_strdup(port)) == NULL)
844 static BIO *http_new_bio(const char *server /* optionally includes ":port" */,
845 const char *server_port /* explicit server port */,
847 const char *proxy /* optionally includes ":port" */,
848 const char *proxy_port /* explicit proxy port */)
851 const char *port = server_port;
859 port = proxy_port;
862 if (port == NULL && strchr(host, ':') == NULL)
863 port = use_ssl ? OSSL_HTTPS_PORT : OSSL_HTTP_PORT;
865 cbio = BIO_new_connect(host /* optionally includes ":port" */);
868 if (port != NULL)
869 (void)BIO_set_conn_port(cbio, port);
916 OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port,
948 if (port != NULL && *port == '\0')
949 port = NULL;
950 if (port == NULL && strchr(server, ':') == NULL)
951 port = use_ssl ? OSSL_HTTPS_PORT : OSSL_HTTP_PORT;
958 cbio = http_new_bio(server, port, use_ssl, proxy_host, proxy_port);
991 bio_update_fn, arg, use_ssl, proxy, server, port,
1025 : NULL, rctx->port, path)
1074 rctx->port != NULL ? ":" : "",
1075 rctx->port != NULL ? rctx->port : "");
1122 char *port;
1138 &port, NULL /* port_num */, &path, NULL, NULL))
1141 rctx = OSSL_HTTP_open(host, port, proxy, no_proxy,
1169 OPENSSL_free(port);
1179 OPENSSL_free(port);
1188 OPENSSL_free(port);
1202 const char *server, const char *port,
1216 rctx = OSSL_HTTP_open(server, port, proxy, no_proxy,
1285 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
1304 if (port == NULL || *port == '\0')
1305 port = OSSL_HTTPS_PORT;
1313 BIO_printf(fbio, "CONNECT %s:%s "HTTP_1_0"\r\n", server, port);