From 438ece068bdedcdd20e5bfb4bddfa94e216735d2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 6 Jun 2004 12:59:02 +0000 Subject: [PATCH] * util.h (xtrycalloc_secure,xtrymalloc_secure): New. --- common/ChangeLog | 4 ++++ common/util.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common/ChangeLog b/common/ChangeLog index a39f17aaa..2e523618b 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,7 @@ +2004-05-12 Werner Koch + + * util.h (xtrycalloc_secure,xtrymalloc_secure): New. + 2004-05-11 Werner Koch * sysutils.c (disable_core_dumps): Only set the current limit. 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))