aboutsummaryrefslogtreecommitdiff
path: root/src/app/main/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-02 11:21:06 -0400
committerNick Mathewson <nickm@torproject.org>2018-11-05 09:22:02 -0500
commit50436ccea4bd200e45196ccce7acff28f293a4de (patch)
tree97385995bcd29d7bf8d8b9a49bdeb884675369ae /src/app/main/main.c
parentcfe5b35edb38cef6312ef0b4ae44fb0e20342706 (diff)
downloadtor-50436ccea4bd200e45196ccce7acff28f293a4de.tar.gz
tor-50436ccea4bd200e45196ccce7acff28f293a4de.zip
Add crypto module as a subsystem.
Diffstat (limited to 'src/app/main/main.c')
-rw-r--r--src/app/main/main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index 3e80725b9a..74c3c41e5b 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -535,12 +535,6 @@ tor_init(int argc, char *argv[])
tor_snprintf(progname, sizeof(progname), "Tor %s", get_version());
log_set_application_name(progname);
- /* Set up the crypto nice and early */
- if (crypto_early_init() < 0) {
- log_err(LD_GENERAL, "Unable to initialize the crypto subsystem!");
- return -1;
- }
-
/* Initialize the history structures. */
rep_hist_init();
/* Initialize the service cache. */
@@ -859,7 +853,6 @@ tor_cleanup(void)
later, if it makes shutdown unacceptably slow. But for
now, leave it here: it's helped us catch bugs in the
past. */
- crypto_global_cleanup();
}
/** Read/create keys as needed, and echo our fingerprint to stdout. */