diff options
author | Werner Koch <[email protected]> | 2015-12-02 09:12:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-12-02 11:27:35 +0000 |
commit | 17ac843871d5f350f26edff0187f94ced923f534 (patch) | |
tree | d862882e92a70c3edf3d943f3d67b70e5ced341d /dirmngr/t-http.c | |
parent | common,gpg: Fix processing of search descriptions ending in '!'. (diff) | |
download | gnupg-17ac843871d5f350f26edff0187f94ced923f534.tar.gz gnupg-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 <[email protected]>
Diffstat (limited to 'dirmngr/t-http.c')
-rw-r--r-- | dirmngr/t-http.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dirmngr/t-http.c b/dirmngr/t-http.c index 35858f649..63662a286 100644 --- a/dirmngr/t-http.c +++ b/dirmngr/t-http.c @@ -323,6 +323,11 @@ main (int argc, char **argv) } putchar ('\n'); } + printf ("Flags :%s%s%s%s\n", + uri->is_http? " http":"", + uri->opaque? " opaque":"", + uri->v6lit? " v6lit":"", + uri->onion? " onion":""); printf ("TLS : %s\n", uri->use_tls? "yes": (my_http_flags&HTTP_FLAG_FORCE_TLS)? "forced" : "no"); |