http: Enhance parser to detect .onion addresses.
authorWerner Koch <wk@gnupg.org>
Wed, 2 Dec 2015 09:12:32 +0000 (10:12 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 2 Dec 2015 11:27:35 +0000 (12:27 +0100)
commit17ac843871d5f350f26edff0187f94ced923f534
treed862882e92a70c3edf3d943f3d67b70e5ced341d
parent10cca02c4c70eee993d4df0a1d20ae841992efe9
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>
dirmngr/http.c
dirmngr/http.h
dirmngr/t-http.c