summaryrefslogtreecommitdiff
path: root/src/app/main/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-26 18:05:58 -0400
committerNick Mathewson <nickm@torproject.org>2019-11-07 07:28:43 -0500
commit8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22 (patch)
tree03f567e7ba8d2fb328d6d07dd0c8453036f5f3a6 /src/app/main/main.c
parentb06e9d8ad58bfe11d2c1f6a921ba059658a578f2 (diff)
downloadtor-8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22.tar.gz
tor-8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22.zip
Use new configuration architecture for crypto options
This is a comparatively simple change.
Diffstat (limited to 'src/app/main/main.c')
-rw-r--r--src/app/main/main.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index fad2e0b62f..6029ed3d2d 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -592,9 +592,6 @@ tor_init(int argc, char *argv[])
return 1;
}
- /* The options are now initialised */
- const or_options_t *options = get_options();
-
/* Initialize channelpadding and circpad parameters to defaults
* until we get a consensus */
channelpadding_new_consensus_params(NULL);
@@ -616,13 +613,6 @@ tor_init(int argc, char *argv[])
"and you probably shouldn't.");
#endif
- if (crypto_global_init(options->HardwareAccel,
- options->AccelName,
- options->AccelDir)) {
- log_err(LD_BUG, "Unable to initialize OpenSSL. Exiting.");
- return -1;
- }
-
/* Scan/clean unparseable descriptors; after reading config */
routerparse_init();