The attached patch removes deprecated(?) calls to OpenSSL functions from
crypro.c,
which are called when USE_SSL is not defined.
I'm not so deep into OpenVPN, so maybe these functions are needed, but i
thought that all crypto-lib
dependent functions should be moved to the corresponding crypto_LIB.c files.
If they are needed, we should #ifdef them, so that PolarSSL-based build
won't break on it.
--- openvpn/crypto.c 2012-02-27 23:10:53.613624010 +0400
+++ openvpn.mod/crypto.c 2012-02-27 23:45:02.128929211 +0400
@@ -1378,8 +1378,6 @@
void
init_ssl_lib (void)
{
- ERR_load_crypto_strings ();
- OpenSSL_add_all_algorithms ();
crypto_init_lib ();
}
@@ -1388,8 +1386,6 @@
{
crypto_uninit_lib ();
prng_uninit();
- EVP_cleanup ();
- ERR_free_strings ();
}
#endif /* USE_SSL */