mirror of
https://github.com/curl/curl.git
synced 2026-06-02 09:44:16 +03:00
http_proxy: make two proxy_create functions static
And drop their `Curl_` prefixes. They are only used within this file. Closes #21775
This commit is contained in:
parent
ead2e13a8e
commit
7bc2bf7917
2 changed files with 12 additions and 23 deletions
|
|
@ -192,11 +192,11 @@ static int proxy_http_ver_major(proxy_http_ver ver)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CURLcode Curl_http_proxy_create_CONNECT(struct httpreq **preq,
|
||||
struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data,
|
||||
struct Curl_peer *dest,
|
||||
proxy_http_ver ver)
|
||||
static CURLcode http_proxy_create_CONNECT(struct httpreq **preq,
|
||||
struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data,
|
||||
struct Curl_peer *dest,
|
||||
proxy_http_ver ver)
|
||||
{
|
||||
char *authority = NULL;
|
||||
int httpversion = proxy_http_ver_major(ver);
|
||||
|
|
@ -268,11 +268,11 @@ out:
|
|||
return result;
|
||||
}
|
||||
|
||||
CURLcode Curl_http_proxy_create_CONNECTUDP(struct httpreq **preq,
|
||||
struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data,
|
||||
struct Curl_peer *dest,
|
||||
proxy_http_ver ver)
|
||||
static CURLcode http_proxy_create_CONNECTUDP(struct httpreq **preq,
|
||||
struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data,
|
||||
struct Curl_peer *dest,
|
||||
proxy_http_ver ver)
|
||||
{
|
||||
const char *proxy_scheme = "http";
|
||||
const char *proxy_host = cf->conn->http_proxy.peer->hostname;
|
||||
|
|
@ -443,9 +443,9 @@ CURLcode Curl_http_proxy_create_tunnel_request(
|
|||
CURLcode result;
|
||||
|
||||
if(udp_tunnel)
|
||||
result = Curl_http_proxy_create_CONNECTUDP(preq, cf, data, dest, ver);
|
||||
result = http_proxy_create_CONNECTUDP(preq, cf, data, dest, ver);
|
||||
else
|
||||
result = Curl_http_proxy_create_CONNECT(preq, cf, data, dest, ver);
|
||||
result = http_proxy_create_CONNECT(preq, cf, data, dest, ver);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
|
|
|
|||
|
|
@ -50,17 +50,6 @@ typedef enum {
|
|||
PROXY_INSPECT_AUTH_RETRY /* Retry with auth */
|
||||
} proxy_inspect_result;
|
||||
|
||||
CURLcode Curl_http_proxy_create_CONNECT(struct httpreq **preq,
|
||||
struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data,
|
||||
struct Curl_peer *dest,
|
||||
proxy_http_ver ver);
|
||||
CURLcode Curl_http_proxy_create_CONNECTUDP(struct httpreq **preq,
|
||||
struct Curl_cfilter *cf,
|
||||
struct Curl_easy *data,
|
||||
struct Curl_peer *dest,
|
||||
proxy_http_ver ver);
|
||||
|
||||
/* Create CONNECT or CONNECT-UDP request */
|
||||
CURLcode Curl_http_proxy_create_tunnel_request(
|
||||
struct httpreq **preq, struct Curl_cfilter *cf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue