mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
10cca02c4c
commit
17ac843871
3 changed files with 45 additions and 33 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue