diff options
| author | Werner Koch <[email protected]> | 2025-07-08 07:56:37 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-07-08 08:02:30 +0000 |
| commit | a0f7cde9daa7ed463beee00fb5fe75e8d90fa1d4 (patch) | |
| tree | 6402aab449e58435aa510f994a17b775b30d2478 /doc/dirmngr.texi | |
| parent | doc: Typo fixes and such (diff) | |
| download | gnupg-a0f7cde9daa7ed463beee00fb5fe75e8d90fa1d4.tar.gz gnupg-a0f7cde9daa7ed463beee00fb5fe75e8d90fa1d4.zip | |
dirmngr: Add option--user-agent and always use a User-Agent header.
* dirmngr/dirmngr.h (opt): Add user_agent.
* dirmngr/dirmngr.c (oUserAgent): New.
(opts): Add "user-agent".
(parse_rereadable_options): Set option.
* dirmngr/ks-engine-hkp.c (send_request): Send User-Agent.
* dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
* dirmngr/ocsp.c (do_ocsp_request): Ditto.
--
Note that the http_open_document function is not used by dirmngr. If
it ever gets used we may want to add a way to configure the http.c
module with a user-agent string, so that it is send by the
send_request function and we do not need to explictly do that in the
caller.
GnuPG-bug-id: 7715
Diffstat (limited to 'doc/dirmngr.texi')
| -rw-r--r-- | doc/dirmngr.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/dirmngr.texi b/doc/dirmngr.texi index 20ea18d08..eda33064e 100644 --- a/doc/dirmngr.texi +++ b/doc/dirmngr.texi @@ -429,6 +429,12 @@ ignoring DPs entirely. Ignore all OCSP URLs contained in the certificate. The effect is to force the use of the default responder. +@item --user-agent @var{string} +@opindex user-agent +Change the default User-Agent for HTTP requests to @var{string}. If +@var{string} is empty or has the value ``none'' no User-Agent header +will be used. + @item --honor-http-proxy @opindex honor-http-proxy If the environment variable @env{http_proxy} has been set, use its |
