[gnome-keyring] gkm: Fix test for libgcrypt 1.6+ version



commit ee0fc2dfbb4ee80221acabccec3409d25487d35e
Author: Stef Walter <stefw gnome org>
Date:   Tue Sep 9 16:41:04 2014 +0200

    gkm: Fix test for libgcrypt 1.6+ version

 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 5b20bb2..696b4a4 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]