summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_keys.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-20 15:17:41 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-20 15:17:41 +0100
commit93a98f8091329d44fe63c092da5f4eaf3bcb983d (patch)
tree8bb70e9d3bc4513a484bc136d3a53d9d5a8b8c56 /src/mint/taler-mint-httpd_keys.c
parented51946442e5e22a7dea68f14ff2bf563503c755 (diff)
downloadexchange-93a98f8091329d44fe63c092da5f4eaf3bcb983d.tar.gz
exchange-93a98f8091329d44fe63c092da5f4eaf3bcb983d.tar.bz2
exchange-93a98f8091329d44fe63c092da5f4eaf3bcb983d.zip
starting to refactor refresh code, moving response generation logic to response generation file
Diffstat (limited to 'src/mint/taler-mint-httpd_keys.c')
-rw-r--r--src/mint/taler-mint-httpd_keys.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_keys.c b/src/mint/taler-mint-httpd_keys.c
index 8db32cd83..01679718e 100644
--- a/src/mint/taler-mint-httpd_keys.c
+++ b/src/mint/taler-mint-httpd_keys.c
@@ -512,4 +512,28 @@ 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_keys.c */