summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_trait_truth_uuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_trait_truth_uuid.c')
-rw-r--r--src/testing/testing_api_trait_truth_uuid.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/src/testing/testing_api_trait_truth_uuid.c b/src/testing/testing_api_trait_truth_uuid.c
index 38a7336..6c171fd 100644
--- a/src/testing/testing_api_trait_truth_uuid.c
+++ b/src/testing/testing_api_trait_truth_uuid.c
@@ -17,7 +17,7 @@
<http://www.gnu.org/licenses/>
*/
/**
- * @file lib/testing_api_trait_truth_pub.c
+ * @file lib/testing_api_trait_truth_uuid.c
* @brief traits to offer a UUID for some truth
* @author Christian Grothoff
* @author Dominik Meister
@@ -26,20 +26,13 @@
#include "platform.h"
#include "anastasis_testing_lib.h"
+
#define ANASTASIS_TESTING_TRAIT_TRUTH_UUID "anastasis-truth-uuid"
-/**
- * Obtain an public key from @a cmd.
- *
- * @param cmd command to extract the number from.
- * @param index the number's index number.
- * @param u[out] set to the number coming from @a cmd.
- * @return #GNUNET_OK on success.
- */
int
-ANASTASIS_TESTING_get_trait_truth_uuid
- (const struct TALER_TESTING_Command *cmd,
+ANASTASIS_TESTING_get_trait_truth_uuid (
+ const struct TALER_TESTING_Command *cmd,
unsigned int index,
const struct ANASTASIS_CRYPTO_TruthUUIDP **tpk)
{
@@ -50,16 +43,9 @@ ANASTASIS_TESTING_get_trait_truth_uuid
}
-/**
- * Offer a truth public key.
- *
- * @param index the number's index number.
- * @param tpk the public key to offer.
- * @return #GNUNET_OK on success.
- */
struct TALER_TESTING_Trait
-ANASTASIS_TESTING_make_trait_truth_uuid
- (unsigned int index,
+ANASTASIS_TESTING_make_trait_truth_uuid (
+ unsigned int index,
const struct ANASTASIS_CRYPTO_TruthUUIDP *tpk)
{
struct TALER_TESTING_Trait ret = {
@@ -67,8 +53,9 @@ ANASTASIS_TESTING_make_trait_truth_uuid
.trait_name = ANASTASIS_TESTING_TRAIT_TRUTH_UUID,
.ptr = (const void *) tpk
};
+
return ret;
}
-/* end of testing_api_trait_truth_pub.c */
+/* end of testing_api_trait_truth_uuid.c */