From fd615f3e33dcdaab55fc01cb7d42d9c4645602cc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Oct 2021 09:30:54 +0200 Subject: -fix exchange FTBFS --- src/util/denom.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/util') 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. * -- cgit v1.2.3