diff options
Diffstat (limited to 'src/testing/testing_api_trait_account_priv.c')
-rw-r--r-- | src/testing/testing_api_trait_account_priv.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/testing/testing_api_trait_account_priv.c b/src/testing/testing_api_trait_account_priv.c index a40e9d2..a666f7a 100644 --- a/src/testing/testing_api_trait_account_priv.c +++ b/src/testing/testing_api_trait_account_priv.c @@ -27,17 +27,9 @@ #define ANASTASIS_TESTING_TRAIT_ACCOUNT_PRIV "anastasis-account_priv" -/** - * Obtain an account private key from @a cmd. - * - * @param cmd command to extract the private key from. - * @param index the private key's index number. - * @param n[out] set to the private key coming from @a cmd. - * @return #GNUNET_OK on success. - */ int -ANASTASIS_TESTING_get_trait_account_priv - (const struct TALER_TESTING_Command *cmd, +ANASTASIS_TESTING_get_trait_account_priv ( + const struct TALER_TESTING_Command *cmd, unsigned int index, const struct ANASTASIS_CRYPTO_AccountPrivateKeyP **priv) { @@ -48,16 +40,9 @@ ANASTASIS_TESTING_get_trait_account_priv } -/** - * Offer an account private key. - * - * @param index usually zero - * @param priv the account_priv to offer. - * @return #GNUNET_OK on success. - */ struct TALER_TESTING_Trait -ANASTASIS_TESTING_make_trait_account_priv - (unsigned int index, +ANASTASIS_TESTING_make_trait_account_priv ( + unsigned int index, const struct ANASTASIS_CRYPTO_AccountPrivateKeyP *priv) { struct TALER_TESTING_Trait ret = { @@ -65,6 +50,7 @@ ANASTASIS_TESTING_make_trait_account_priv .trait_name = ANASTASIS_TESTING_TRAIT_ACCOUNT_PRIV, .ptr = (const void *) priv }; + return ret; } |