[Pkg-wmaker-commits] [wmbiff] 03/06: Bugfix: initialize libgcrypt properly before cram-md5 (or probably apop) authentication.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_3_3
in repository wmbiff.
commit 221b0cfc197f08356650edbf2f0f32b575820ae8
Author: bluehal <bluehal>
Date: Sun Oct 28 22:22:09 2001 +0000
Bugfix: initialize libgcrypt properly before cram-md5
(or probably apop) authentication.
---
wmbiff/wmbiff.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index b3256de..cfc8773 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -1,4 +1,4 @@
-/* $Id: wmbiff.c,v 1.7 2001/10/04 09:50:59 jordi Exp $ */
+/* $Id: wmbiff.c,v 1.8 2001/10/28 22:22:09 bluehal Exp $ */
#define USE_POLL
@@ -85,6 +85,19 @@ void init_biff(char *uconfig_file)
strcat(mbox[0].path, m);
}
+#ifdef WITH_GCRYPT
+ /* gcrypt is a little strange, in that it doesn't
+ * seem to initialize it's memory pool by itself.
+ * I believe we *expect* "Warning: using insecure memory!"
+ */
+ if((i=gcry_control( GCRYCTL_INIT_SECMEM, 16384, 0 )) != 0) {
+ fprintf(stderr, "Error: gcry_control() to initialize secure memory returned non-zero: %d\n", i);
+ fprintf(stderr, "Message: %s\n", gcry_strerror(gcry_errno()));
+ fprintf(stderr, "libgcrypt version: %s\n", gcry_check_version(NULL));
+ fprintf(stderr, "attempting to recover: will fail later if using CRAM-MD5 or APOP authentication. \n");
+ };
+#endif
+
/* Read config file */
if (uconfig_file[0] != 0) {
/* user-specified config file */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list