aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_trait_core_secret.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_trait_core_secret.c')
-rw-r--r--src/testing/testing_trait_core_secret.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/testing/testing_trait_core_secret.c b/src/testing/testing_trait_core_secret.c
index 100a249..98eb0db 100644
--- a/src/testing/testing_trait_core_secret.c
+++ b/src/testing/testing_trait_core_secret.c
@@ -29,14 +29,6 @@
29#define ANASTASIS_TESTING_TRAIT_CORE_SECRET "anastasis-core-secret" 29#define ANASTASIS_TESTING_TRAIT_CORE_SECRET "anastasis-core-secret"
30 30
31 31
32/**
33 * Obtain the core secret from @a cmd.
34 *
35 * @param cmd command to extract the core secret from.
36 * @param index the index of the core secret (usually 0)
37 * @param s[out] set to the core secret coming from @a cmd.
38 * @return #GNUNET_OK on success.
39 */
40int 32int
41ANASTASIS_TESTING_get_trait_core_secret (const struct 33ANASTASIS_TESTING_get_trait_core_secret (const struct
42 TALER_TESTING_Command *cmd, 34 TALER_TESTING_Command *cmd,
@@ -50,23 +42,16 @@ ANASTASIS_TESTING_get_trait_core_secret (const struct
50} 42}
51 43
52 44
53/**
54 * Offer the core secret.
55 *
56 * @param index the core secret's index number (usually 0).
57 * @param s the core secret to offer.
58 * @return #GNUNET_OK on success.
59 */
60struct TALER_TESTING_Trait 45struct TALER_TESTING_Trait
61ANASTASIS_TESTING_make_trait_core_secret 46ANASTASIS_TESTING_make_trait_core_secret (unsigned int index,
62 (unsigned int index, 47 const void *s)
63 const void *s)
64{ 48{
65 struct TALER_TESTING_Trait ret = { 49 struct TALER_TESTING_Trait ret = {
66 .index = index, 50 .index = index,
67 .trait_name = ANASTASIS_TESTING_TRAIT_CORE_SECRET, 51 .trait_name = ANASTASIS_TESTING_TRAIT_CORE_SECRET,
68 .ptr = s 52 .ptr = s
69 }; 53 };
54
70 return ret; 55 return ret;
71} 56}
72 57