]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gcrypt.c
crypt: Introduce crypt_shutdown().
[paraslash.git] / gcrypt.c
index 5c05ba20badce165aa1f1369136ab90e5d9b41d9..705d0d87a86e0608e9856d9fa197cedb01b439dc 100644 (file)
--- a/gcrypt.c
+++ b/gcrypt.c
@@ -70,6 +70,15 @@ void crypt_init(void)
        srandom(seed);
 }
 
+void crypt_shutdown(void)
+{
+       /*
+        * WK does not see a way to apply a patch for the sake of Valgrind, so
+        * as of 2018 libgrypt has no deinitialization routine to free the
+        * resources on exit.
+        */
+}
+
 /** S-expression for the public part of an RSA key. */
 #define RSA_PUBKEY_SEXP "(public-key (rsa (n %m) (e %m)))"
 /** S-expression for a private RSA key. */