diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-15 11:55:16 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-16 07:48:17 -0500 |
commit | 8d1f31190e12d337ef37c5ba541b195d72dfd663 (patch) | |
tree | 2bf0743900e50a3d128a65f8880fd140a4e14c4e /src/feature/dirclient/dirclient.c | |
parent | 773bcf56290674cdc157f6e39894d31b366f8c50 (diff) | |
download | tor-8d1f31190e12d337ef37c5ba541b195d72dfd663.tar.gz tor-8d1f31190e12d337ef37c5ba541b195d72dfd663.zip |
Move directory_must_use_begindir() to dirclient_modes.[ch]
Diffstat (limited to 'src/feature/dirclient/dirclient.c')
-rw-r--r-- | src/feature/dirclient/dirclient.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/feature/dirclient/dirclient.c b/src/feature/dirclient/dirclient.c index 200e4e6a15..2291bf730c 100644 --- a/src/feature/dirclient/dirclient.c +++ b/src/feature/dirclient/dirclient.c @@ -872,16 +872,6 @@ connection_dir_download_cert_failed(dir_connection_t *conn, int status) update_certificate_downloads(time(NULL)); } -/* Should this tor instance only use begindir for all its directory requests? - */ -int -directory_must_use_begindir(const or_options_t *options) -{ - /* Clients, onion services, and bridges must use begindir, - * relays and authorities do not have to */ - return !public_server_mode(options); -} - /** Evaluate the situation and decide if we should use an encrypted * "begindir-style" connection for this directory request. * 0) If there is no DirPort, yes. |