commit 7b0ae9c1d0a3c3165a8cef8cc12d04d207a49ce2
parent 6714e6a9cc90ddef8b8498f8a62a6c11d998c65c
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 9 Mar 2015 11:24:35 +0100
fix ftbfs vs. latest GNUnet APIs
Diffstat:
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c
@@ -145,7 +145,7 @@ TALER_MINT_conf_duration_provide ()
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"mint_keys.lookahead_provide not valid or not given\n");
- GNUNET_abort ();
+ GNUNET_assert (0);
}
return rel;
}
diff --git a/src/mint/taler-mint-keyup.c b/src/mint/taler-mint-keyup.c
@@ -318,10 +318,10 @@ create_signkey_issue_priv (struct GNUNET_TIME_Absolute start,
issue->purpose.purpose = htonl (TALER_SIGNATURE_MASTER_SIGNKEY);
issue->purpose.size = htonl (sizeof (struct TALER_MINT_SignKeyIssue) - offsetof (struct TALER_MINT_SignKeyIssue, purpose));
- if (GNUNET_OK != GNUNET_CRYPTO_eddsa_sign (master_priv, &issue->purpose, &issue->signature))
- {
- GNUNET_abort ();
- }
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CRYPTO_eddsa_sign (master_priv,
+ &issue->purpose,
+ &issue->signature));
}
@@ -459,13 +459,10 @@ create_denomkey_issue (struct CoinTypeParams *params,
dki->issue.purpose.purpose = htonl (TALER_SIGNATURE_MASTER_DENOM);
dki->issue.purpose.size = htonl (sizeof (struct TALER_MINT_DenomKeyIssuePriv) - offsetof (struct TALER_MINT_DenomKeyIssuePriv, issue.purpose));
- if (GNUNET_OK !=
- GNUNET_CRYPTO_eddsa_sign (master_priv,
- &dki->issue.purpose,
- &dki->issue.signature))
- {
- GNUNET_abort ();
- }
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CRYPTO_eddsa_sign (master_priv,
+ &dki->issue.purpose,
+ &dki->issue.signature));
}