summaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2004-06-06 14:59:02 +0200
committerWerner Koch <wk@gnupg.org>2004-06-06 14:59:02 +0200
commit438ece068bdedcdd20e5bfb4bddfa94e216735d2 (patch)
tree90c3ffe971e8f90bf77e41e05f2abcef60b636a4 /common/util.h
parent2004-05-21 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-438ece068bdedcdd20e5bfb4bddfa94e216735d2.tar.xz
gnupg2-438ece068bdedcdd20e5bfb4bddfa94e216735d2.zip
* util.h (xtrycalloc_secure,xtrymalloc_secure): New.
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h
index ca7266627..461e744ad 100644
--- a/common/util.h
+++ b/common/util.h
@@ -37,9 +37,11 @@
#include "../jnlib/dotlock.h"
#include "../jnlib/utf8conv.h"
-/* handy malloc macros - use only them */
+/* Handy malloc macros - please use only them. */
#define xtrymalloc(a) gcry_malloc ((a))
+#define xtrymalloc_secure(a) gcry_malloc_secure ((a))
#define xtrycalloc(a,b) gcry_calloc ((a),(b))
+#define xtrycalloc_secure(a,b) gcry_calloc_secure ((a),(b))
#define xtryrealloc(a,b) gcry_realloc ((a),(b))
#define xtrystrdup(a) gcry_strdup ((a))
#define xfree(a) gcry_free ((a))