gnupg/dirmngr
Werner Koch c091816b4a
dirmngr: Add option --use-tor as a stub.
* dirmngr/dirmngr.h (opt): Add field "use_tor".
* dirmngr/dirmngr.c (oUseTor): New.
(opts): Add --use-tor.
(parse_rereadable_options): Set option.
(main): Tell gpgconf about that option.

* dirmngr/crlfetch.c (crl_fetch): Pass TOR flag to the http module and
return an error if LDAP is used in TOR mode.
(ca_cert_fetch): Return an error in TOR mode.
(start_cert_fetch): Ditto.
* dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass TOR flag to the
http module.
* dirmngr/ks-engine-hkp.c (send_request): Ditto.
* dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
* dirmngr/ks-engine-ldap.c (ks_ldap_get): Return an error in TOR mode.
(ks_ldap_search): Ditto.
(ks_ldap_put): Ditto.
* dirmngr/ocsp.c (do_ocsp_request): Ditto.  Also pass TOR flag to the
http module.

* dirmngr/server.c (option_handler): Add "honor-keyserver-url-used".
(cmd_dns_cert): Return an error in TOR mode.
(cmd_getinfo): Add subcommand "tor"
* tools/gpgconf-comp.c (gc_options_dirmngr): Add TOR group.
--

More work is required to actually make --use-tor useful.  For now it
returns an error for almost all network access but as soon as we have
added the TOR feature to the http module some parts will start to
work.

Signed-off-by: Werner Koch <wk@gnupg.org>
2015-09-18 16:21:31 +02:00
..
ChangeLog-2011 Remove the obsolete keyserver directory from the repo. 2015-04-20 18:20:45 +02:00
ChangeLog-2011-ks Remove the obsolete keyserver directory from the repo. 2015-04-20 18:20:45 +02:00
Makefile.am gpg: Move all DNS access to Dirmngr. 2015-04-23 15:52:39 +02:00
OAUTHORS Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ONEWS Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
cdb.h Tweaks for gpgconf. 2010-12-14 19:17:58 +00:00
cdblib.c Silence more warnings about unused vars and args. 2014-03-07 19:05:41 +01:00
certcache.c Improve spelling and grammar of some comments. 2015-03-23 19:58:30 +01:00
certcache.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
crlcache.c dirmngr: Fix the cleanup zombies fix (685b782). 2015-06-18 13:34:48 +02:00
crlcache.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
crlfetch.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
crlfetch.h Some work on the dirmngr 2010-07-23 16:16:14 +00:00
dirmngr-client.c common: Rename log and gcc attribute macros (jnlib merge). 2015-04-24 16:10:47 +02:00
dirmngr-err.h Some work on porting dirmngr (unfinished) 2010-07-16 13:19:45 +00:00
dirmngr.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
dirmngr.h dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
dirmngr_ldap.c common: Rename log and gcc attribute macros (jnlib merge). 2015-04-24 16:10:47 +02:00
dns-cert.c gpg: Move all DNS access to Dirmngr. 2015-04-23 15:52:39 +02:00
dns-cert.h gpg: Move all DNS access to Dirmngr. 2015-04-23 15:52:39 +02:00
ks-action.c dirmngr: If LDAP is not enable, don't build the LDAP bits. 2015-04-13 12:02:40 +02:00
ks-action.h dirmngr: Better encapsulate the keyservers variable. 2015-03-31 11:58:41 +02:00
ks-engine-finger.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
ks-engine-hkp.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
ks-engine-http.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
ks-engine-kdns.c Add ECC import regression tests and fixed a regression. 2011-02-10 20:45:37 +01:00
ks-engine-ldap.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
ks-engine.h Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros. 2015-07-26 12:50:24 +02:00
ldap-parse-uri.c dirmngr: Use a better error code. 2015-03-31 12:07:39 +02:00
ldap-parse-uri.h Add new LDAP utility functions. 2015-03-23 19:58:26 +01:00
ldap-url.c dirmngr: Simplify strtok macro. 2014-03-07 19:00:31 +01:00
ldap-url.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
ldap-wrapper-ce.c Silence more warnings about unused vars and args. 2014-03-07 19:05:41 +01:00
ldap-wrapper.c dirmngr: Fix the cleanup zombies fix (685b782). 2015-06-18 13:34:48 +02:00
ldap-wrapper.h Fixed couple of build problems. However the W32 version is currently 2010-07-26 14:27:59 +00:00
ldap.c Improve spelling and grammar of some comments. 2015-03-23 19:58:30 +01:00
ldapserver.c Improve spelling and grammar of some comments. 2015-03-23 19:58:30 +01:00
ldapserver.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
misc.c Improve spelling and grammar of some comments. 2015-03-23 19:58:30 +01:00
misc.h Move copy_stream function to misc.c. 2015-03-23 19:58:27 +01:00
ocsp.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
ocsp.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
server.c dirmngr: Add option --use-tor as a stub. 2015-09-18 16:21:31 +02:00
sks-keyservers.netCA.pem dirmngr: Add support for hkps keyservers. 2014-05-05 16:23:37 +02:00
t-dns-cert.c gpg: Move all DNS access to Dirmngr. 2015-04-23 15:52:39 +02:00
t-ldap-parse-uri.c Add new LDAP utility functions. 2015-03-23 19:58:26 +01:00
t-support.h Add new LDAP utility functions. 2015-03-23 19:58:26 +01:00
validate.c Use a unique capitalization for "Note:". 2014-10-10 15:29:42 +02:00
validate.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
w32-ldap-help.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00