gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -fix synced flag on reconnect du


From: gnunet
Subject: [taler-exchange] branch master updated: -fix synced flag on reconnect due to error
Date: Thu, 11 Nov 2021 13:50:22 +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 c4306281 -fix synced flag on reconnect due to error
c4306281 is described below

commit c43062811c536a85c07c9f89f7815d5559a2b250
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Nov 11 13:50:20 2021 +0100

    -fix synced flag on reconnect due to error
---
 src/util/crypto_helper_denom.c | 9 +++++++++
 src/util/crypto_helper_esign.c | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index f8e77ae4..5352cba9 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -80,6 +80,7 @@ do_disconnect (struct TALER_CRYPTO_DenominationHelper *dh)
                               "unlink",
                               dh->my_sa.sun_path);
   dh->sock = -1;
+  dh->synced = false;
 }
 
 
@@ -687,8 +688,16 @@ TALER_CRYPTO_helper_denom_sign (
         return ds;
       }
       break; /* while(1) loop ensures we recvfrom() again */
+    case TALER_HELPER_RSA_SYNCED:
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Synchronized add odd time with RSA helper!\n");
+      dh->synced = true;
+      break;
     default:
       GNUNET_break_op (0);
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Received unexpected message of type %u\n",
+                  ntohs (hdr->type));
       do_disconnect (dh);
       *ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_BUG;
       return ds;
diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c
index eb0673f2..f15b2455 100644
--- a/src/util/crypto_helper_esign.c
+++ b/src/util/crypto_helper_esign.c
@@ -81,6 +81,7 @@ do_disconnect (struct TALER_CRYPTO_ExchangeSignHelper *esh)
                               "unlink",
                               esh->my_sa.sun_path);
   esh->sock = -1;
+  esh->synced = false;
 }
 
 
@@ -609,8 +610,16 @@ TALER_CRYPTO_helper_esign_sign_ (
         return TALER_EC_EXCHANGE_SIGNKEY_HELPER_BUG;
       }
       break; /* while(1) loop ensures we recvfrom() again */
+    case TALER_HELPER_EDDSA_SYNCED:
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Synchronized add odd time with EdDSA helper!\n");
+      esh->synced = true;
+      break;
     default:
       GNUNET_break_op (0);
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Received unexpected message of type %u\n",
+                  ntohs (hdr->type));
       do_disconnect (esh);
       return TALER_EC_EXCHANGE_SIGNKEY_HELPER_BUG;
     }

-- 
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]