gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: fix FTBFS in testca


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: fix FTBFS in testcase
Date: Fri, 07 Apr 2017 22:46:32 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 2948254  fix FTBFS in testcase
2948254 is described below

commit 2948254d49a550b454899c74a8a61c30b644532a
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Apr 7 22:46:30 2017 +0200

    fix FTBFS in testcase
---
 src/exchangedb/test_exchangedb_denomkeys.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/exchangedb/test_exchangedb_denomkeys.c 
b/src/exchangedb/test_exchangedb_denomkeys.c
index ab0a770..e7803c2 100644
--- a/src/exchangedb/test_exchangedb_denomkeys.c
+++ b/src/exchangedb/test_exchangedb_denomkeys.c
@@ -1,6 +1,6 @@
 /*
   This file is part of TALER
-  Copyright (C) 2014 GNUnet e. V. (and other contributing authors)
+  Copyright (C) 2014-2017 GNUnet e. V. (and other contributing authors)
 
   TALER is free software; you can redistribute it and/or modify it under the
   terms of the GNU General Public License as published by the Free Software
@@ -31,12 +31,14 @@
     if (cond) { GNUNET_break (0); goto EXITIF_exit; }             \
   } while (0)
 
+
 /**
  * @brief Iterator called on denomination key.
  *
  * @param cls closure with expected DKI
  * @param dki the denomination key
  * @param alias coin alias
+ * @param was_revoked #GNUNET_YES if revoked
  * @return #GNUNET_OK to continue to iterate,
  *  #GNUNET_NO to stop iteration with no error,
  *  #GNUNET_SYSERR to abort iteration with error!
@@ -44,7 +46,8 @@
 static int
 dki_iter (void *cls,
           const char *alias,
-          const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki)
+          const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki,
+          int was_revoked)
 {
   const struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *exp = cls;
 
@@ -81,6 +84,7 @@ main (int argc,
   char *enc;
   size_t enc_size;
   struct TALER_EXCHANGEDB_DenominationKeyIssueInformation dki_read;
+  struct TALER_MasterPublicKeyP master_pub;
   char *enc_read;
   size_t enc_read_size;
   char *tmpfile;
@@ -96,6 +100,7 @@ main (int argc,
   tmpfile = NULL;
   dki.denom_priv.rsa_private_key = NULL;
   dki_read.denom_priv.rsa_private_key = NULL;
+  memset (&master_pub, 42, sizeof (master_pub)); /* for now does not matter */
   GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
                               &dki.issue,
                               sizeof (struct 
TALER_EXCHANGEDB_DenominationKeyInformationP));
@@ -120,6 +125,7 @@ main (int argc,
                                                   &dki_read));
   EXITIF (1 !=
           TALER_EXCHANGEDB_denomination_keys_iterate (tmpdir,
+                                                      &master_pub,
                                                       &dki_iter,
                                                       &dki));
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]