diff options
Diffstat (limited to 'src/testing/testing_api_trait_account_pub.c')
-rw-r--r-- | src/testing/testing_api_trait_account_pub.c | 24 |
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 @@ | |||
27 | #define ANASTASIS_TESTING_TRAIT_ACCOUNT_PUB "anastasis-account_pub" | 27 | #define ANASTASIS_TESTING_TRAIT_ACCOUNT_PUB "anastasis-account_pub" |
28 | 28 | ||
29 | 29 | ||
30 | /** | ||
31 | * Obtain an account public key from @a cmd. | ||
32 | * | ||
33 | * @param cmd command to extract the public key from. | ||
34 | * @param index the public key's index number. | ||
35 | * @param n[out] set to the public key coming from @a cmd. | ||
36 | * @return #GNUNET_OK on success. | ||
37 | */ | ||
38 | int | 30 | int |
39 | ANASTASIS_TESTING_get_trait_account_pub | 31 | ANASTASIS_TESTING_get_trait_account_pub ( |
40 | (const struct TALER_TESTING_Command *cmd, | 32 | const struct TALER_TESTING_Command *cmd, |
41 | unsigned int index, | 33 | unsigned int index, |
42 | const struct ANASTASIS_CRYPTO_AccountPublicKeyP **pub) | 34 | const struct ANASTASIS_CRYPTO_AccountPublicKeyP **pub) |
43 | { | 35 | { |
@@ -48,16 +40,9 @@ ANASTASIS_TESTING_get_trait_account_pub | |||
48 | } | 40 | } |
49 | 41 | ||
50 | 42 | ||
51 | /** | ||
52 | * Offer an account public key. | ||
53 | * | ||
54 | * @param index usually zero | ||
55 | * @param h the account_pub to offer. | ||
56 | * @return #GNUNET_OK on success. | ||
57 | */ | ||
58 | struct TALER_TESTING_Trait | 43 | struct TALER_TESTING_Trait |
59 | ANASTASIS_TESTING_make_trait_account_pub | 44 | ANASTASIS_TESTING_make_trait_account_pub ( |
60 | (unsigned int index, | 45 | unsigned int index, |
61 | const struct ANASTASIS_CRYPTO_AccountPublicKeyP *h) | 46 | const struct ANASTASIS_CRYPTO_AccountPublicKeyP *h) |
62 | { | 47 | { |
63 | struct TALER_TESTING_Trait ret = { | 48 | struct TALER_TESTING_Trait ret = { |
@@ -65,6 +50,7 @@ ANASTASIS_TESTING_make_trait_account_pub | |||
65 | .trait_name = ANASTASIS_TESTING_TRAIT_ACCOUNT_PUB, | 50 | .trait_name = ANASTASIS_TESTING_TRAIT_ACCOUNT_PUB, |
66 | .ptr = (const void *) h | 51 | .ptr = (const void *) h |
67 | }; | 52 | }; |
53 | |||
68 | return ret; | 54 | return ret; |
69 | } | 55 | } |
70 | 56 | ||