diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-23 10:28:24 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-12 16:12:07 +0100 |
commit | fe6960cce854cd4c665a27c4368e4397c8e7bcfb (patch) | |
tree | 162a95572079b3e7a014cb845ee028329a06f5f8 /src/exchange-lib/testing_api_trait_blinding_key.c | |
parent | b198bb3867b6a15c65a8860af12d7a634de906a0 (diff) | |
download | exchange-fe6960cce854cd4c665a27c4368e4397c8e7bcfb.tar.xz |
Implement new traits-based tests.
Diffstat (limited to 'src/exchange-lib/testing_api_trait_blinding_key.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_blinding_key.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchange-lib/testing_api_trait_blinding_key.c b/src/exchange-lib/testing_api_trait_blinding_key.c index d23fd93b2..c9415cae9 100644 --- a/src/exchange-lib/testing_api_trait_blinding_key.c +++ b/src/exchange-lib/testing_api_trait_blinding_key.c @@ -40,22 +40,22 @@ */ int TALER_TESTING_get_trait_blinding_key (const struct TALER_TESTING_Command *cmd, - const char *selector, + unsigned int index, struct TALER_DenominationBlindingKeyP **blinding_key) { return cmd->traits (cmd->cls, (void **) blinding_key, TALER_TESTING_TRAIT_BLINDING_KEY, - selector); + index); } struct TALER_TESTING_Trait -TALER_TESTING_make_trait_blinding_key (const char *selector, +TALER_TESTING_make_trait_blinding_key (unsigned int index, const struct TALER_DenominationBlindingKeyP *blinding_key) { struct TALER_TESTING_Trait ret = { - .selector = selector, + .index = index, .trait_name = TALER_TESTING_TRAIT_BLINDING_KEY, .ptr = (const void *) blinding_key }; |