summaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2023-01-11 10:30:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-12 10:14:17 +0100
commitdb91dbbf2c0a853670ce0246d6d6579e6b0f6c0c (patch)
tree4ed1851abd435b1175280bdc70a254c2b99c45f6 /lib/socks.c
parent5cf5bfcd134c1378af6dbae723abf88e309117df (diff)
downloadcurl-db91dbbf2c0a853670ce0246d6d6579e6b0f6c0c.tar.gz
curl_log: for failf/infof and debug logging implementations
- new functions and macros for cfilter debugging - set CURL_DEBUG with names of cfilters where debug logging should be enabled - use GNUC __attribute__ to enable printf format checks during compile Closes #10271
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/socks.c b/lib/socks.c
index 129c5f036..b8b4f8cb8 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -1221,9 +1221,10 @@ static void socks_cf_get_host(struct Curl_cfilter *cf,
}
}
-static const struct Curl_cftype cft_socks_proxy = {
+struct Curl_cftype Curl_cft_socks_proxy = {
"SOCKS-PROXYY",
CF_TYPE_IP_CONNECT,
+ 0,
socks_proxy_cf_destroy,
socks_proxy_cf_connect,
socks_proxy_cf_close,
@@ -1245,7 +1246,7 @@ CURLcode Curl_conn_socks_proxy_add(struct Curl_easy *data,
struct Curl_cfilter *cf;
CURLcode result;
- result = Curl_cf_create(&cf, &cft_socks_proxy, NULL);
+ result = Curl_cf_create(&cf, &Curl_cft_socks_proxy, NULL);
if(!result)
Curl_conn_cf_add(data, conn, sockindex, cf);
return result;
@@ -1258,7 +1259,7 @@ CURLcode Curl_cf_socks_proxy_insert_after(struct Curl_cfilter *cf_at,
CURLcode result;
(void)data;
- result = Curl_cf_create(&cf, &cft_socks_proxy, NULL);
+ result = Curl_cf_create(&cf, &Curl_cft_socks_proxy, NULL);
if(!result)
Curl_conn_cf_insert_after(cf_at, cf);
return result;