summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_trait_salt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_trait_salt.c')
-rw-r--r--src/testing/testing_api_trait_salt.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/testing/testing_api_trait_salt.c b/src/testing/testing_api_trait_salt.c
index 116742f..c4ceb55 100644
--- a/src/testing/testing_api_trait_salt.c
+++ b/src/testing/testing_api_trait_salt.c
@@ -29,17 +29,9 @@
#define ANASTASIS_TESTING_TRAIT_SALT "anastasis-provider-salt"
-/**
- * Obtain a salt from @a cmd.
- *
- * @param cmd command to extract the salt from.
- * @param index the salt's index number.
- * @param s[out] set to the salt coming from @a cmd.
- * @return #GNUNET_OK on success.
- */
int
-ANASTASIS_TESTING_get_trait_salt
- (const struct TALER_TESTING_Command *cmd,
+ANASTASIS_TESTING_get_trait_salt (
+ const struct TALER_TESTING_Command *cmd,
unsigned int index,
const struct ANASTASIS_CRYPTO_ProviderSaltP **s)
{
@@ -50,16 +42,9 @@ ANASTASIS_TESTING_get_trait_salt
}
-/**
- * Offer an salt.
- *
- * @param index the salt's index number.
- * @param u the salt to offer.
- * @return #GNUNET_OK on success.
- */
struct TALER_TESTING_Trait
-ANASTASIS_TESTING_make_trait_salt
- (unsigned int index,
+ANASTASIS_TESTING_make_trait_salt (
+ unsigned int index,
const struct ANASTASIS_CRYPTO_ProviderSaltP *s)
{
struct TALER_TESTING_Trait ret = {
@@ -67,6 +52,7 @@ ANASTASIS_TESTING_make_trait_salt
.trait_name = ANASTASIS_TESTING_TRAIT_SALT,
.ptr = (const void *) s
};
+
return ret;
}