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/http.h | |
| 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/http.h')
| -rw-r--r-- | dirmngr/http.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dirmngr/http.h b/dirmngr/http.h index 4ad0351e2..18420c925 100644 --- a/dirmngr/http.h +++ b/dirmngr/http.h @@ -71,6 +71,7 @@ struct parsed_uri_s typedef struct parsed_uri_s *parsed_uri_t; struct uri_tuple_s *uri_query_lookup (parsed_uri_t uri, const char *key); +const char *uri_query_value (parsed_uri_t url, const char *key); typedef enum { @@ -151,8 +152,9 @@ void http_session_set_log_cb (http_session_t sess, void http_session_set_timeout (http_session_t sess, unsigned int timeout); +#define HTTP_PARSE_NO_SCHEME_CHECK 1 gpg_error_t http_parse_uri (parsed_uri_t *ret_uri, const char *uri, - int no_scheme_check); + unsigned int flags); void http_release_parsed_uri (parsed_uri_t uri); |
