aboutsummaryrefslogtreecommitdiffstats
path: root/common/strlist.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-04-21 10:59:59 +0000
committerJustus Winter <[email protected]>2016-04-21 12:38:53 +0000
commitc6d1f2f08c68efe7e80887219064a8ce6365128f (patch)
tree33c32ad85cdae7955c9e87377569456fa956c3c3 /common/strlist.h
parentcommon: Add 'append_to_strlist_try' which can fail. (diff)
downloadgnupg-c6d1f2f08c68efe7e80887219064a8ce6365128f.tar.gz
gnupg-c6d1f2f08c68efe7e80887219064a8ce6365128f.zip
common: Add 'free_strlist_wipe' which wipes memory.
* common/strlist.c (free_strlist_wipe): New function. * common/strlist.h (free_strlist_wipe): New prototype. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/strlist.h')
-rw-r--r--common/strlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/strlist.h b/common/strlist.h
index 94dd32f05..45f5543a3 100644
--- a/common/strlist.h
+++ b/common/strlist.h
@@ -40,6 +40,8 @@ struct string_list
typedef struct string_list *strlist_t;
void free_strlist (strlist_t sl);
+void free_strlist_wipe (strlist_t sl);
+
strlist_t add_to_strlist (strlist_t *list, const char *string);
strlist_t add_to_strlist_try (strlist_t *list, const char *string);