summaryrefslogtreecommitdiffstats
path: root/tcpd/tlspasswordcache.c
diff options
context:
space:
mode:
authorSam Varshavchik2022-03-13 21:10:44 -0400
committerSam Varshavchik2022-04-16 19:59:47 -0400
commit867cce4e32e7e64651887664724aa7f06566cb4b (patch)
tree8cd198902ea0c51ca955e1bc60d4756008c74818 /tcpd/tlspasswordcache.c
parenta86c03a704830534340347f0f4438e32fdb8ea50 (diff)
downloadcourier-libs-867cce4e32e7e64651887664724aa7f06566cb4b.tar.bz2
all: scripts to create installable *.deb packages.
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;
}