aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_keys.c
diff options
context:
space:
mode:
authorLucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch>2022-01-08 20:41:01 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:35:31 +0100
commit9074e66ebc8b73ecc98500f32af52088fd7f0722 (patch)
treee5e270bea1e2b3de44e915b428df01866a93203e /src/exchange/taler-exchange-httpd_keys.c
parent4c7aa097840eb3254a6823177abcc90fa7ccf0d0 (diff)
implement withdraw (nonce reuse check missing)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index dd5928fb..66c0f69e 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -2442,7 +2442,19 @@ TEH_keys_denomination_sign (const struct TALER_DenominationHash *h_denom_pub,
msg,
msg_size,
ec);
- // TODO: case TALER_DENOMINATION_CS:
+ case TALER_DENOMINATION_CS:
+ if (sizeof (struct TALER_BlindedCsPlanchet) != msg_size)
+ {
+ *ec = TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
+ return none;
+ }
+ struct TALER_BlindedCsPlanchet *blinded_cs_planchet = ((struct
+ TALER_BlindedCsPlanchet
+ *) msg);
+ return TALER_CRYPTO_helper_cs_sign (ksh->helpers->csdh,
+ &hd->h_details.h_cs,
+ blinded_cs_planchet,
+ ec);
default:
*ec = TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
return none;