crypt: Introduce crypt_shutdown().
[paraslash.git] / openssl.c
index 70a13aaab0b40339e3f042566a555c266375ad00..7d5bb25d53cf73009803fe0e62ca15d0167a05cb 100644 (file)
--- a/openssl.c
+++ b/openssl.c
@@ -55,6 +55,11 @@ void crypt_init(void)
        srandom(seed);
 }
 
+void crypt_shutdown(void)
+{
+       CRYPTO_cleanup_all_ex_data();
+}
+
 static int get_private_key(const char *path, RSA **rsa)
 {
        EVP_PKEY *pkey;