[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: adapting to API changes for fix
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: adapting to API changes for fix #6149 |
Date: |
Sat, 11 Apr 2020 21:47:08 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 3b341f8 adapting to API changes for fix #6149
3b341f8 is described below
commit 3b341f888c23f34018faec54b4768fbefef509d3
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Apr 11 21:46:28 2020 +0200
adapting to API changes for fix #6149
---
src/backend/taler-merchant-httpd.c | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c
b/src/backend/taler-merchant-httpd.c
index 6c7eaf5..f3c87f1 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1047,7 +1047,6 @@ instances_iterator_cb (void *cls,
struct IterateInstancesCls *iic = cls;
char *token;
struct MerchantInstance *mi;
- struct GNUNET_CRYPTO_EddsaPrivateKey *pk;
/* used as hashmap keys */
struct GNUNET_HashCode h_pk;
struct GNUNET_HashCode h_id;
@@ -1097,7 +1096,6 @@ instances_iterator_cb (void *cls,
&mi->tip_exchange))
{
char *tip_reserves;
- struct GNUNET_CRYPTO_EddsaPrivateKey *tip_pk;
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_filename (cfg,
@@ -1114,8 +1112,10 @@ instances_iterator_cb (void *cls,
iic->ret = GNUNET_SYSERR;
return;
}
- tip_pk = GNUNET_CRYPTO_eddsa_key_create_from_file (tip_reserves);
- if (NULL == tip_pk)
+ if (GNUNET_OK !=
+ GNUNET_CRYPTO_eddsa_key_from_file (tip_reserves,
+ GNUNET_NO,
+ &mi->tip_reserve.eddsa_priv))
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
section,
@@ -1128,18 +1128,13 @@ instances_iterator_cb (void *cls,
iic->ret = GNUNET_SYSERR;
return;
}
- mi->tip_reserve.eddsa_priv = *tip_pk;
- GNUNET_free (tip_pk);
GNUNET_free (tip_reserves);
}
- if (GNUNET_YES !=
- GNUNET_DISK_file_test (mi->keyfile))
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Merchant private key `%s' does not exist yet, creating it!\n",
- mi->keyfile);
- if (NULL ==
- (pk = GNUNET_CRYPTO_eddsa_key_create_from_file (mi->keyfile)))
+ if (GNUNET_SYSERR ==
+ GNUNET_CRYPTO_eddsa_key_from_file (mi->keyfile,
+ GNUNET_YES,
+ &mi->privkey.eddsa_priv))
{
GNUNET_break (0);
GNUNET_free (mi->keyfile);
@@ -1148,10 +1143,8 @@ instances_iterator_cb (void *cls,
iic->ret = GNUNET_SYSERR;
return;
}
- mi->privkey.eddsa_priv = *pk;
- GNUNET_CRYPTO_eddsa_key_get_public (pk,
+ GNUNET_CRYPTO_eddsa_key_get_public (&mi->privkey.eddsa_priv,
&mi->pubkey.eddsa_pub);
- GNUNET_free (pk);
mi->id = GNUNET_strdup (token + 1);
if (0 == strcasecmp ("default",
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: adapting to API changes for fix #6149,
gnunet <=