I have rebuilt the packages on squeeze (i386, amd64) with the attached patch found at [1]. The previously logged message no longer appears.

Cheers

[1] https://launchpadlibrarian.net/82139424/0003-init-gcrypt.patch
>From bbd500b9e0fb3b6df0f15fc0b1a35619d61a76f5 Mon Sep 17 00:00:00 2001
From: https://launchpadlibrarian.net/82139424/0003-init-gcrypt.patch
Date: Wed, 26 Oct 2011 07:34:11 +0200
Subject: [PATCH] correctly initialize libgcrypt

---
 cc_lib.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/cc_lib.c b/cc_lib.c
index 6c2b497..8768ec1 100644
--- a/cc_lib.c
+++ b/cc_lib.c
@@ -38,6 +38,15 @@ static int _pam_cc_derive_key_ssha1(pam_cc_handle_t *pamcch,
 #ifdef HAVE_OPENSSL_OPENSSLCONF_H
 	SHA_CTX sha_ctx;
 #else
+   if (!gcry_check_version (NULL))
+   {
+      syslog (LOG_ERR, "pam_ccreds: failed to initialize libgcrypt");
+      return PAM_SERVICE_ERR;
+   }
+
+   gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
+   gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
+
 	gcry_md_hd_t handle;
 #endif
 	unsigned char T[4];
-- 
1.7.2.5

Reply via email to