aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-action.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-action.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-action.c')
-rw-r--r--dirmngr/ks-action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/ks-action.c b/dirmngr/ks-action.c
index c2d8c374d..5c097754e 100644
--- a/dirmngr/ks-action.c
+++ b/dirmngr/ks-action.c
@@ -81,7 +81,7 @@ ks_action_help (ctrl_t ctrl, const char *url)
else
#endif
{
- err = http_parse_uri (&parsed_uri, url, 1);
+ err = http_parse_uri (&parsed_uri, url, HTTP_PARSE_NO_SCHEME_CHECK);
}
if (err)
@@ -313,7 +313,7 @@ ks_action_fetch (ctrl_t ctrl, const char *url, estream_t outfp)
if (!url)
return gpg_error (GPG_ERR_INV_URI);
- err = http_parse_uri (&parsed_uri, url, 1);
+ err = http_parse_uri (&parsed_uri, url, HTTP_PARSE_NO_SCHEME_CHECK);
if (err)
return err;