aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-06-20 18:56:35 +0000
committerNick Mathewson <nickm@torproject.org>2005-06-20 18:56:35 +0000
commit2aff87caae0055a4767e60356f44612db20ad5c1 (patch)
tree99dab8d7e82e8650c07e5c5fc40336e5ecbcb7cc /src/common/tortls.c
parent5eef9177c57ccac03b6676e039c56bf7a6705198 (diff)
downloadtor-2aff87caae0055a4767e60356f44612db20ad5c1.tar
tor-2aff87caae0055a4767e60356f44612db20ad5c1.tar.gz
Load hardware acceleration options when/where available. Can anybody test this?
svn:r4467
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 974d22afa..09f95f925 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -148,12 +148,11 @@ tor_tls_get_error(tor_tls *tls, int r, int extra,
/** Initialize OpenSSL, unless it has already been initialized.
*/
static void
-tor_tls_init(void) {
+tor_tls_init() {
if (!tls_library_is_initialized) {
SSL_library_init();
SSL_load_error_strings();
- crypto_global_init();
- OpenSSL_add_all_algorithms();
+ crypto_global_init(-1);
tls_library_is_initialized = 1;
}
}