From 5fcca8707f4a4fd6568095872a1bb6e7124ee508 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 28 Jan 2015 20:59:39 +0100 Subject: simplify logic, remove dead call --- src/mint/taler-mint-httpd_keystate.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/mint/taler-mint-httpd_keystate.c') diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c index 41617589a..c35ed15ad 100644 --- a/src/mint/taler-mint-httpd_keystate.c +++ b/src/mint/taler-mint-httpd_keystate.c @@ -456,4 +456,29 @@ read_again: } +/** + * Sign the message in @a purpose with the mint's signing + * key. + * + * @param purpose the message to sign + * @param[OUT] sig signature over purpose using current signing key + */ +void +TALER_MINT_keys_sign (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, + struct GNUNET_CRYPTO_EddsaSignature *sig) + +{ + struct MintKeyState *key_state; + + key_state = TALER_MINT_key_state_acquire (); + GNUNET_assert (GNUNET_OK == + GNUNET_CRYPTO_eddsa_sign (&key_state->current_sign_key_issue.signkey_priv, + purpose, + sig)); + TALER_MINT_key_state_release (key_state); +} + + + + /* end of taler-mint-httpd_keystate.c */ -- cgit v1.2.3