diff options
Diffstat (limited to 'src/testing/testing_trait_challenge.c')
-rw-r--r-- | src/testing/testing_trait_challenge.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/testing/testing_trait_challenge.c b/src/testing/testing_trait_challenge.c index 5c40d8e..da981d7 100644 --- a/src/testing/testing_trait_challenge.c +++ b/src/testing/testing_trait_challenge.c | |||
@@ -28,14 +28,7 @@ | |||
28 | 28 | ||
29 | #define ANASTASIS_TESTING_TRAIT_CHALLENGE "anastasis-challenge" | 29 | #define ANASTASIS_TESTING_TRAIT_CHALLENGE "anastasis-challenge" |
30 | 30 | ||
31 | /** | 31 | |
32 | * Obtain a challenge from @a cmd. | ||
33 | * | ||
34 | * @param cmd command to extract the challenge from. | ||
35 | * @param index the index of the challenge | ||
36 | * @param c[out] set to the challenge coming from @a cmd. | ||
37 | * @return #GNUNET_OK on success. | ||
38 | */ | ||
39 | int | 32 | int |
40 | ANASTASIS_TESTING_get_trait_challenge (const struct TALER_TESTING_Command *cmd, | 33 | ANASTASIS_TESTING_get_trait_challenge (const struct TALER_TESTING_Command *cmd, |
41 | unsigned int index, | 34 | unsigned int index, |
@@ -48,17 +41,9 @@ ANASTASIS_TESTING_get_trait_challenge (const struct TALER_TESTING_Command *cmd, | |||
48 | } | 41 | } |
49 | 42 | ||
50 | 43 | ||
51 | /** | ||
52 | * Offer a challenge. | ||
53 | * | ||
54 | * @param index the challenge index number. | ||
55 | * @param c the challenge to offer. | ||
56 | * @return #GNUNET_OK on success. | ||
57 | */ | ||
58 | struct TALER_TESTING_Trait | 44 | struct TALER_TESTING_Trait |
59 | ANASTASIS_TESTING_make_trait_challenge | 45 | ANASTASIS_TESTING_make_trait_challenge (unsigned int index, |
60 | (unsigned int index, | 46 | const struct ANASTASIS_Challenge *c) |
61 | const struct ANASTASIS_Challenge *c) | ||
62 | { | 47 | { |
63 | struct TALER_TESTING_Trait ret = { | 48 | struct TALER_TESTING_Trait ret = { |
64 | .index = index, | 49 | .index = index, |