mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
1e120f5a8d
commit
668deeded9
3 changed files with 20 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue