aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-17 20:50:09 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-17 20:50:18 +0100
commit33877b2c55be2d9a4deaf56c709a7943dd00b62c (patch)
treec254c0ae815c1bd10ed424f32d9cc197461b23de /src/include
parentfbb4256d55ed448e45527b9fb229f566d35856c4 (diff)
address fixme, fix use-after-free in testing traits
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchange_service.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index 972b94aa1..de1daf1ef 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -531,6 +531,28 @@ TALER_EXCHANGE_get_denomination_key (const struct TALER_EXCHANGE_Keys *keys,
/**
+ * Create a copy of a denomination public key.
+ *
+ * @param key key to copy
+ * @returns a copy, must be freed with #TALER_EXCHANGE_destroy_denomination_key
+ */
+struct TALER_EXCHANGE_DenomPublicKey *
+TALER_EXCHANGE_copy_denomination_key (const struct
+ TALER_EXCHANGE_DenomPublicKey *key);
+
+
+/**
+ * Destroy a denomination public key.
+ * Should only be called with keys created by #TALER_EXCHANGE_copy_denomination_key.
+ *
+ * @param key key to destroy.
+ */
+void
+TALER_EXCHANGE_destroy_denomination_key (struct
+ TALER_EXCHANGE_DenomPublicKey *key);
+
+
+/**
* Obtain the denomination key details from the exchange.
*
* @param keys the exchange's key set