diff options
author | Werner Koch <[email protected]> | 2021-05-25 14:08:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-06-16 09:54:47 +0000 |
commit | 1c96f4d663c020167ed3d39e513751641dfc3567 (patch) | |
tree | e5ab269133251abde68ab1c6d9529134062422bd /dirmngr/t-http.c | |
parent | card: Fix typo in help message (diff) | |
download | gnupg-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/t-http.c')
-rw-r--r-- | dirmngr/t-http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/t-http.c b/dirmngr/t-http.c index 8ad5e7a0f..7f3aa005d 100644 --- a/dirmngr/t-http.c +++ b/dirmngr/t-http.c @@ -381,7 +381,7 @@ main (int argc, char **argv) (void)no_crl; #endif /*HTTP_USE_GNUTLS*/ - rc = http_parse_uri (&uri, *argv, 1); + rc = http_parse_uri (&uri, *argv, HTTP_PARSE_NO_SCHEME_CHECK); if (rc) { log_error ("'%s': %s\n", *argv, gpg_strerror (rc)); |