diff options
author | Werner Koch <wk@gnupg.org> | 2015-12-02 10:12:32 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-12-02 12:27:35 +0100 |
commit | 17ac843871d5f350f26edff0187f94ced923f534 (patch) | |
tree | d862882e92a70c3edf3d943f3d67b70e5ced341d /dirmngr/http.h | |
parent | common,gpg: Fix processing of search descriptions ending in '!'. (diff) | |
download | gnupg2-17ac843871d5f350f26edff0187f94ced923f534.tar.xz gnupg2-17ac843871d5f350f26edff0187f94ced923f534.zip |
http: Enhance parser to detect .onion addresses.
* dirmngr/http.h (parsed_uri_s): Add flag 'onion'.
* dirmngr/http.c (do_parse_uri): Set that flag.
* dirmngr/t-http.c (main): Print flags.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/http.h')
-rw-r--r-- | dirmngr/http.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/http.h b/dirmngr/http.h index 73a423cd5..64f55e12e 100644 --- a/dirmngr/http.h +++ b/dirmngr/http.h @@ -52,6 +52,7 @@ struct parsed_uri_s unsigned int use_tls:1; /* Whether TLS should be used. */ unsigned int opaque:1;/* Unknown scheme; PATH has the rest. */ unsigned int v6lit:1; /* Host was given as a literal v6 address. */ + unsigned int onion:1; /* .onion address given. */ char *auth; /* username/password for basic auth. */ char *host; /* Host (converted to lowercase). */ unsigned short port; /* Port (always set if the host is set). */ |