aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-engine-hkp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-05-25 14:08:56 +0000
committerWerner Koch <[email protected]>2021-06-16 09:54:47 +0000
commit1c96f4d663c020167ed3d39e513751641dfc3567 (patch)
treee5ab269133251abde68ab1c6d9529134062422bd /dirmngr/ks-engine-hkp.c
parentcard: Fix typo in help message (diff)
downloadgnupg-1c96f4d663c020167ed3d39e513751641dfc3567.tar.gz
gnupg-1c96f4d663c020167ed3d39e513751641dfc3567.zip
dirmngr: Support pseudo URI scheme "opaque".
* dirmngr/http.h (HTTP_PARSE_NO_SCHEME_CHECK): New. * dirmngr/http.c (http_parse_uri): Use this flag. Change all callers to use the new macro for better readability. (do_parse_uri): Add pseudo scheme "opaque". (uri_query_value): New. -- This scheme can be used to convey arbitrary strings in a parsed_uri_t object. Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit 72124fadafde153f8ac89a70202006d831829d06)
Diffstat (limited to 'dirmngr/ks-engine-hkp.c')
-rw-r--r--dirmngr/ks-engine-hkp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c
index 93c676b6a..e72c2c16d 100644
--- a/dirmngr/ks-engine-hkp.c
+++ b/dirmngr/ks-engine-hkp.c
@@ -733,7 +733,8 @@ mark_host_dead (const char *name)
parsed_uri_t parsed_uri = NULL;
int done = 0;
- if (name && *name && !http_parse_uri (&parsed_uri, name, 1))
+ if (name && *name
+ && !http_parse_uri (&parsed_uri, name, HTTP_PARSE_NO_SCHEME_CHECK))
{
if (parsed_uri->v6lit)
{