diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-09 11:24:35 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-09 11:24:35 +0100 |
commit | 7b0ae9c1d0a3c3165a8cef8cc12d04d207a49ce2 (patch) | |
tree | 8d1566df6ec3566ca2c1a4689526aa4ef0b79c3a | |
parent | 6714e6a9cc90ddef8b8498f8a62a6c11d998c65c (diff) |
fix ftbfs vs. latest GNUnet APIs
-rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 2 | ||||
-rw-r--r-- | src/mint/taler-mint-keyup.c | 19 |
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 index bc81a5499..7edae9f7b 100644 --- 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 index c68740cb9..c4e153476 100644 --- 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)); } |