summaryrefslogtreecommitdiffstats
path: root/src/openvpn/crypto.c
diff options
context:
space:
mode:
authorIgor Novgorodov <igor@novg.net>2012-02-28 15:16:01 +0400
committerDavid Sommerseth <davids@redhat.com>2012-03-29 14:36:48 +0200
commit39b54baa36e8625fd29d0a1ed6482f83fa78d322 (patch)
treea2a6575defd292323403df70d58fd9a4f67284ab /src/openvpn/crypto.c
parent3c1971de878bb3658c38b0504f314d38b6b765d2 (diff)
downloadopenvpn-39b54baa36e8625fd29d0a1ed6482f83fa78d322.tar.gz
openvpn-39b54baa36e8625fd29d0a1ed6482f83fa78d322.tar.xz
openvpn-39b54baa36e8625fd29d0a1ed6482f83fa78d322.zip
Remove calls to OpenSSL when building with --disable-ssl
Move OpenSSL calls out from the generic crypto layer and into the OpenSSL specific layer. Also don't load all algortihms if SSL isn't enabled. Error strings will also not be loaded into memory if ENABLE_SMALL is configured. Signed-off-by: Igor Novgorodov <igor@novg.net> Acked-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/crypto.c')
-rw-r--r--src/openvpn/crypto.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/openvpn/crypto.c b/src/openvpn/crypto.c
index f811966..03781fc 100644
--- a/src/openvpn/crypto.c
+++ b/src/openvpn/crypto.c
@@ -1384,8 +1384,6 @@ get_random()
void
init_ssl_lib (void)
{
- ERR_load_crypto_strings ();
- OpenSSL_add_all_algorithms ();
crypto_init_lib ();
}
@@ -1394,8 +1392,6 @@ free_ssl_lib (void)
{
crypto_uninit_lib ();
prng_uninit();
- EVP_cleanup ();
- ERR_free_strings ();
}
#endif /* ENABLE_SSL */