summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_keystate.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-07 15:10:24 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-07 15:10:24 +0200
commitcc5d09cf1d28e31ca8eca054b7da2c3873e2efe7 (patch)
treeeb843f228165457fa066038058df380fc5652405 /src/exchange/taler-exchange-httpd_keystate.h
parent7935349d35611901d42d088f0e6dbd5ec8c47272 (diff)
downloadexchange-cc5d09cf1d28e31ca8eca054b7da2c3873e2efe7.tar.gz
exchange-cc5d09cf1d28e31ca8eca054b7da2c3873e2efe7.tar.bz2
exchange-cc5d09cf1d28e31ca8eca054b7da2c3873e2efe7.zip
properly handle signing errors if httpd lacks signing keys by returning internal errors (and handling new return value from TEH_KS_sign)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keystate.h')
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.h b/src/exchange/taler-exchange-httpd_keystate.h
index b2fb6f6d..b956c630 100644
--- a/src/exchange/taler-exchange-httpd_keystate.h
+++ b/src/exchange/taler-exchange-httpd_keystate.h
@@ -140,8 +140,9 @@ TEH_KS_loop (void);
* @param purpose the message to sign
* @param[out] pub set to the current public signing key of the exchange
* @param[out] sig signature over purpose using current signing key
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR if we lack key material
*/
-void
+int
TEH_KS_sign (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose,
struct TALER_ExchangePublicKeyP *pub,
struct TALER_ExchangeSignatureP *sig);