diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-17 17:19:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-17 17:19:02 +0100 |
commit | e42f014cffae126a52c92fbf8151e6f5cecc9de0 (patch) | |
tree | d4d7754aec574bb35a830db30d690df592a224b1 /src/exchange-lib/testing_api_trait_key_peer.c | |
parent | cf1ce4786356cba7d3f84a74fab282650f612db9 (diff) | |
download | exchange-e42f014cffae126a52c92fbf8151e6f5cecc9de0.tar.gz exchange-e42f014cffae126a52c92fbf8151e6f5cecc9de0.tar.bz2 exchange-e42f014cffae126a52c92fbf8151e6f5cecc9de0.zip |
use more const in taler_testing_lib.h
Diffstat (limited to 'src/exchange-lib/testing_api_trait_key_peer.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_key_peer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_trait_key_peer.c b/src/exchange-lib/testing_api_trait_key_peer.c index 102fb1b58..d10623d28 100644 --- a/src/exchange-lib/testing_api_trait_key_peer.c +++ b/src/exchange-lib/testing_api_trait_key_peer.c @@ -40,7 +40,6 @@ * @param index (tipically zero) which key to return if there * are multiple on offer. * @param priv[out] set to the key coming from @a cmd. - * * @return #GNUNET_OK on success. */ int @@ -50,7 +49,7 @@ TALER_TESTING_get_trait_peer_key const struct GNUNET_CRYPTO_EddsaPrivateKey **priv) { return cmd->traits (cmd->cls, - (void **) priv, + (const void **) priv, TALER_TESTING_TRAIT_KEY_PEER, index); } @@ -62,13 +61,12 @@ TALER_TESTING_get_trait_peer_key * @param index (tipically zero) which key to return if there are * multiple on offer. * @param priv which object should be offered. - * * @return the trait. */ struct TALER_TESTING_Trait TALER_TESTING_make_trait_peer_key (unsigned int index, - struct GNUNET_CRYPTO_EddsaPrivateKey *priv) + const struct GNUNET_CRYPTO_EddsaPrivateKey *priv) { struct TALER_TESTING_Trait ret = { .index = index, @@ -97,7 +95,7 @@ TALER_TESTING_get_trait_peer_key_pub const struct GNUNET_CRYPTO_EddsaPublicKey **pub) { return cmd->traits (cmd->cls, - (void **) pub, + (const void **) pub, TALER_TESTING_TRAIT_KEY_PEER_PUB, index); } |