diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-26 09:30:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-27 09:23:14 +0200 |
commit | fd615f3e33dcdaab55fc01cb7d42d9c4645602cc (patch) | |
tree | 4895b72c23333e826b0eec5530d589fea9e888d3 /src/util | |
parent | 8a6d9da5452ae858adca81277dff12009ddb2698 (diff) |
-fix exchange FTBFS
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/denom.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util/denom.c b/src/util/denom.c index 5ea4aca29..407ade384 100644 --- a/src/util/denom.c +++ b/src/util/denom.c @@ -195,6 +195,25 @@ TALER_denom_pub_deep_copy (struct TALER_DenominationPublicKey *denom_dst, } +void +TALER_denom_sig_deep_copy (struct TALER_DenominationSignature *denom_dst, + const struct TALER_DenominationSignature *denom_src) +{ + *denom_dst = *denom_src; /* shallow copy */ + switch (denom_src->cipher) + { + case TALER_DENOMINATION_RSA: + denom_dst->details.rsa_signature + = GNUNET_CRYPTO_rsa_signature_dup ( + denom_src->details.rsa_signature); + return; + // TODO: add case for Clause-Schnorr + default: + GNUNET_assert (0); + } +} + + /** * Compare two denomination public keys. * |