summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_trait_account_pub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_trait_account_pub.c')
-rw-r--r--src/testing/testing_api_trait_account_pub.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/testing/testing_api_trait_account_pub.c b/src/testing/testing_api_trait_account_pub.c
index 19ba79f..9a6a45a 100644
--- a/src/testing/testing_api_trait_account_pub.c
+++ b/src/testing/testing_api_trait_account_pub.c
@@ -27,17 +27,9 @@
#define ANASTASIS_TESTING_TRAIT_ACCOUNT_PUB "anastasis-account_pub"
-/**
- * Obtain an account public key from @a cmd.
- *
- * @param cmd command to extract the public key from.
- * @param index the public key's index number.
- * @param n[out] set to the public key coming from @a cmd.
- * @return #GNUNET_OK on success.
- */
int
-ANASTASIS_TESTING_get_trait_account_pub
- (const struct TALER_TESTING_Command *cmd,
+ANASTASIS_TESTING_get_trait_account_pub (
+ const struct TALER_TESTING_Command *cmd,
unsigned int index,
const struct ANASTASIS_CRYPTO_AccountPublicKeyP **pub)
{
@@ -48,16 +40,9 @@ ANASTASIS_TESTING_get_trait_account_pub
}
-/**
- * Offer an account public key.
- *
- * @param index usually zero
- * @param h the account_pub to offer.
- * @return #GNUNET_OK on success.
- */
struct TALER_TESTING_Trait
-ANASTASIS_TESTING_make_trait_account_pub
- (unsigned int index,
+ANASTASIS_TESTING_make_trait_account_pub (
+ unsigned int index,
const struct ANASTASIS_CRYPTO_AccountPublicKeyP *h)
{
struct TALER_TESTING_Trait ret = {
@@ -65,6 +50,7 @@ ANASTASIS_TESTING_make_trait_account_pub
.trait_name = ANASTASIS_TESTING_TRAIT_ACCOUNT_PUB,
.ptr = (const void *) h
};
+
return ret;
}