diff options
author | Stef Walter <stefw@gnome.org> | 2014-09-09 16:41:04 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2014-09-09 16:41:51 +0200 |
commit | ee0fc2dfbb4ee80221acabccec3409d25487d35e (patch) | |
tree | e051b6c983aa2af153cb0836df25776773f34a4f | |
parent | fa25db485279f5bc99a202db2ebeff00819a097f (diff) |
gkm: Fix test for libgcrypt 1.6+ version
-rw-r--r-- | pkcs11/gkm/test-data-asn1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkcs11/gkm/test-data-asn1.c b/pkcs11/gkm/test-data-asn1.c index 5b20bb21..696b4a41 100644 --- a/pkcs11/gkm/test-data-asn1.c +++ b/pkcs11/gkm/test-data-asn1.c @@ -34,11 +34,15 @@ #include "egg/egg-asn1x.h" #include "egg/egg-asn1-defs.h" +#include "egg/egg-libgcrypt.h" +#include "egg/egg-secure-memory.h" typedef struct _EggAsn1xDef ASN1_ARRAY_TYPE; typedef struct _EggAsn1xDef asn1_static_node; #include "test.asn.h" +EGG_SECURE_DEFINE_GLIB_GLOBALS(); + typedef struct { GNode *asn1_cert; } Test; @@ -108,6 +112,8 @@ main (int argc, char **argv) #if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); #endif + egg_libgcrypt_initialize(); + g_test_init (&argc, &argv, NULL); g_test_add ("/gkm/data-asn1/integers", Test, NULL, setup, test_asn1_integers, teardown); |