diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-03-04 11:57:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-03-04 11:57:57 +0100 |
commit | aba92c5bfa3efa9a7cabf2fc85b1f14bea2d8307 (patch) | |
tree | fec44c7e61e47592f5468632e5823fc3e48e679e /src/exchange-lib/exchange_api_wire.c | |
parent | d06fb4d8182e5213e6d59cf0c5fe2c8d4c4cef36 (diff) | |
parent | 17ff4f5e97b981f0b3eebd6e3923fe60dc75edd5 (diff) |
modify /wire/test to provide bank URI and bank account numbers
Diffstat (limited to 'src/exchange-lib/exchange_api_wire.c')
-rw-r--r-- | src/exchange-lib/exchange_api_wire.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_wire.c b/src/exchange-lib/exchange_api_wire.c index fd40230c7..f01c5000b 100644 --- a/src/exchange-lib/exchange_api_wire.c +++ b/src/exchange-lib/exchange_api_wire.c @@ -84,6 +84,25 @@ struct TALER_EXCHANGE_WireHandle /** * Verify that the signature on the "200 OK" response + * for /wire/test from the exchange is valid. + * Accepts everything. + * + * @param wh wire handle + * @param json json reply with the signature + * @return #GNUNET_SYSERR if @a json is invalid, + * #GNUNET_NO if the method is unknown, + * #GNUNET_OK if the json is valid + */ +static int +verify_wire_test_signature_ok (const struct TALER_EXCHANGE_WireHandle *wh, + json_t *json) +{ + return GNUNET_OK; +} + + +/** + * Verify that the signature on the "200 OK" response * for /wire/sepa from the exchange is valid. * * @param wh wire handle @@ -182,6 +201,7 @@ verify_wire_method_signature_ok (const struct TALER_EXCHANGE_WireHandle *wh, int (*handler)(const struct TALER_EXCHANGE_WireHandle *wh, json_t *json); } handlers[] = { + { "test", &verify_wire_test_signature_ok }, { "sepa", &verify_wire_sepa_signature_ok }, { NULL, NULL } }; |