gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: initialize master_pub field


From: gnunet
Subject: [taler-exchange] branch master updated: initialize master_pub field
Date: Tue, 08 Dec 2020 19:13:42 +0100

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 05f539c1 initialize master_pub field
05f539c1 is described below

commit 05f539c127f4e3fce56a04f7aeb1bb204ab3cff2
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Dec 8 19:13:39 2020 +0100

    initialize master_pub field
---
 src/lib/exchange_api_handle.c | 4 ++--
 src/util/Makefile.am          | 3 ++-
 src/util/offline_signatures.c | 3 +++
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 9d4ebf56..78d1fcfd 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -395,8 +395,8 @@ parse_json_signkey (struct TALER_EXCHANGE_SigningPublicKey 
*sign_key,
   if (! check_sigs)
     return GNUNET_OK;
   if (GNUNET_OK !=
-      TALER_exchange_offline_signkey_validity_verify
-        (&sign_key->key,
+      TALER_exchange_offline_signkey_validity_verify (
+        &sign_key->key,
         sign_key->valid_from,
         sign_key->valid_until,
         sign_key->valid_legal,
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 9dcc4035..2c8038d0 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -13,10 +13,11 @@ pkgcfgdir = $(prefix)/share/taler/config.d/
 
 pkgcfg_DATA = \
   paths.conf \
+  taler-helper-crypto-eddsa.conf \
   taler-helper-crypto-rsa.conf
 
 EXTRA_DIST = \
-  paths.conf \
+  $(pkgcfg_DATA) \
   taler-config.in \
   test_helper_eddsa.conf \
   test_helper_rsa.conf
diff --git a/src/util/offline_signatures.c b/src/util/offline_signatures.c
index d8f04032..be5783df 100644
--- a/src/util/offline_signatures.c
+++ b/src/util/offline_signatures.c
@@ -121,6 +121,8 @@ TALER_exchange_offline_signkey_validity_sign (
     .signkey_pub = *exchange_pub
   };
 
+  GNUNET_CRYPTO_eddsa_key_get_public (&master_priv->eddsa_priv,
+                                      &skv.master_public_key.eddsa_pub);
   GNUNET_CRYPTO_eddsa_sign (&master_priv->eddsa_priv,
                             &skv,
                             &master_sig->eddsa_signature);
@@ -140,6 +142,7 @@ TALER_exchange_offline_signkey_validity_verify (
     .purpose.purpose = htonl (
       TALER_SIGNATURE_MASTER_SIGNING_KEY_VALIDITY),
     .purpose.size = htonl (sizeof (skv)),
+    .master_public_key = *master_pub,
     .start = GNUNET_TIME_absolute_hton (start_sign),
     .expire = GNUNET_TIME_absolute_hton (end_sign),
     .end = GNUNET_TIME_absolute_hton (end_legal),

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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