aboutsummaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-cs.c
diff options
context:
space:
mode:
authorGian Demarmels <gian@demarmels.org>2022-01-07 16:33:00 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:34:22 +0100
commit4c7aa097840eb3254a6823177abcc90fa7ccf0d0 (patch)
treec22d5c2b4eb9e6ea9748e82d7a629193bd450da0 /src/util/taler-exchange-secmod-cs.c
parent2d70c8c6d01c50ebee59907eeeeb3eed4b630767 (diff)
downloadexchange-4c7aa097840eb3254a6823177abcc90fa7ccf0d0.tar.xz
cleanup
Diffstat (limited to 'src/util/taler-exchange-secmod-cs.c')
-rw-r--r--src/util/taler-exchange-secmod-cs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/taler-exchange-secmod-cs.c b/src/util/taler-exchange-secmod-cs.c
index 5c5675872..d7624a0b9 100644
--- a/src/util/taler-exchange-secmod-cs.c
+++ b/src/util/taler-exchange-secmod-cs.c
@@ -1081,7 +1081,6 @@ parse_key (struct Denomination *denom,
const void *buf,
size_t buf_size)
{
- struct GNUNET_CRYPTO_CsPrivateKey priv;
char *anchor_s;
char dummy;
unsigned long long anchor_ll;
@@ -1119,8 +1118,9 @@ parse_key (struct Denomination *denom,
return;
}
- // TODO: memcpy or cast?
- memcpy (&priv, buf, sizeof(priv));
+ const struct GNUNET_CRYPTO_CsPrivateKey priv
+ = *((struct GNUNET_CRYPTO_CsPrivateKey *) buf);
+// memcpy (&priv, buf, sizeof(priv));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"privkey %zu\n",