From 17ac843871d5f350f26edff0187f94ced923f534 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 2 Dec 2015 10:12:32 +0100 Subject: 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 --- dirmngr/t-http.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dirmngr/t-http.c') 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"); -- cgit v1.2.3