summaryrefslogtreecommitdiff
path: root/tests/gc.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-04-16 13:38:28 +0000
committerSimon Josefsson <simon@josefsson.org>2007-04-16 13:38:28 +0000
commit5b7a8d1a7f5232e5c74cf0212a02e76cb215f66a (patch)
tree62bb696f96ce0ca3b9bf0f8d3dc9dda080ec9844 /tests/gc.c
parente92d127899ca2794a9ded3b8b59043ff2031caec (diff)
downloadgnutls-5b7a8d1a7f5232e5c74cf0212a02e76cb215f66a.tar.gz
Need to init libgcrypt with secure memory hooks.
Diffstat (limited to 'tests/gc.c')
-rw-r--r--tests/gc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gc.c b/tests/gc.c
index 052595d1f5..0f23dfbb4b 100644
--- a/tests/gc.c
+++ b/tests/gc.c
@@ -41,6 +41,9 @@ doit (void)
char digest[20];
int err;
+ /* XXX: We need this to fix secure memory. */
+ gnutls_global_init();
+
err = gc_init ();
if (err)
fail ("gc_init() failed: %d\n", err);