summaryrefslogtreecommitdiffstats
path: root/tcpd/tlspasswordcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcpd/tlspasswordcache.c')
-rw-r--r--tcpd/tlspasswordcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcpd/tlspasswordcache.c b/tcpd/tlspasswordcache.c
index e26b72e..a5de624 100644
--- a/tcpd/tlspasswordcache.c
+++ b/tcpd/tlspasswordcache.c
@@ -382,6 +382,10 @@ typedef EVP_CIPHER_CTX CIPHER_CONTEXT;
int tlspassword_init()
{
+#if HAVE_GCRYPT
+ if (!gcry_control(GCRYCTL_INITIALIZATION_FINISHED_P))
+ gcry_check_version(NULL);
+#endif
return 1;
}