summaryrefslogtreecommitdiffstats
path: root/crypto.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-10-31 16:29:14 +0100
committerDavid Sommerseth <davids@redhat.com>2011-11-21 11:51:39 +0100
commit54628d1ac10675d4554b58500341e35e8ac4fcbb (patch)
treeb03cc6e3ac7e1f3f0b789e49ec0553f0529c5057 /crypto.c
parent10b99726a30bb7252cb01806f5f276be7873e84e (diff)
downloadopenvpn-54628d1ac10675d4554b58500341e35e8ac4fcbb.tar.gz
openvpn-54628d1ac10675d4554b58500341e35e8ac4fcbb.tar.xz
openvpn-54628d1ac10675d4554b58500341e35e8ac4fcbb.zip
Moved prng_uninit out of crypto_uninit_lib
Since prng_uninit is SSL-library agnostic, but crypto_uninit_lib isn't, the function was moved up a level. Also removed one unused variable (j) in tls1_P_hash(). Signed-off-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 'crypto.c')
-rw-r--r--crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto.c b/crypto.c
index d17f706..375d35a 100644
--- a/crypto.c
+++ b/crypto.c
@@ -1388,6 +1388,7 @@ void
free_ssl_lib (void)
{
crypto_uninit_lib ();
+ prng_uninit();
EVP_cleanup ();
ERR_free_strings ();
}