aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/t-http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-09-19 14:14:01 +0000
committerWerner Koch <[email protected]>2023-09-26 12:10:42 +0000
commit668deeded9742e811a786f97a917c59793fcd9ff (patch)
treeeae11884b8c5461982de40bc51f33b446fbc7b51 /dirmngr/t-http.c
parentdirmngr: Implement automatic proxy detection on Windows. (diff)
downloadgnupg-668deeded9742e811a786f97a917c59793fcd9ff.tar.gz
gnupg-668deeded9742e811a786f97a917c59793fcd9ff.zip
dirmngr: Improve error codes returned from http fetching.
* dirmngr/ks-engine-http.c (ks_http_fetch): Return better error codes. * dirmngr/ks-engine-hkp.c (send_request): Ditto. * dirmngr/t-http.c (main): New option --try-proxy.
Diffstat (limited to 'dirmngr/t-http.c')
-rw-r--r--dirmngr/t-http.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dirmngr/t-http.c b/dirmngr/t-http.c
index 7f3aa005d..f9c59783f 100644
--- a/dirmngr/t-http.c
+++ b/dirmngr/t-http.c
@@ -288,6 +288,11 @@ main (int argc, char **argv)
my_http_flags |= HTTP_FLAG_FORCE_TOR;
argc--; argv++;
}
+ else if (!strcmp (*argv, "--try-proxy"))
+ {
+ my_http_flags |= HTTP_FLAG_TRY_PROXY;
+ argc--; argv++;
+ }
else if (!strcmp (*argv, "--no-out"))
{
no_out = 1;