gcry_control(GCRYCTL_INIT_SECMEM,...)

Simon Josefsson jas@extundo.com
Thu, 23 Jan 2003 15:14:17 +0100


gcry_control() prints warnings to stderr if called multiple times,
which isn't always possible to avoid (consider two shared libraries
each using libgcrypt without knowing about each other, linked into the
same application).  Would disabling the error message cause any
problems?

Index: secmem.c
===================================================================
RCS file: /cvs/gnupg/libgcrypt/src/secmem.c,v
retrieving revision 1.9
diff -u -p -r1.9 secmem.c
--- secmem.c	17 Sep 2002 12:40:05 -0000	1.9
+++ secmem.c	23 Jan 2003 14:11:11 -0000
@@ -270,8 +270,6 @@ _gcry_secmem_init( size_t n )
 	    n = DEFAULT_POOLSIZE;
 	if( !pool_okay )
 	    init_pool(n);
-	else
-	    log_error("Oops, secure memory pool already initialized\n");
     }
 }