diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-19 00:14:20 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-19 00:14:20 +0200 |
commit | abe779ab7f8eee576f2c8e8acbf34a505d9bc6bf (patch) | |
tree | 9f84b9f0143bb18500334d786ef8e53e808ddf78 /src/mint/taler-mint-httpd_test.h | |
parent | e226e5c350a84ff2a04ed183e5bde4fae6d11489 (diff) |
implementing /test/transfer
Diffstat (limited to 'src/mint/taler-mint-httpd_test.h')
-rw-r--r-- | src/mint/taler-mint-httpd_test.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_test.h b/src/mint/taler-mint-httpd_test.h index cafbb0729..e220e438a 100644 --- a/src/mint/taler-mint-httpd_test.h +++ b/src/mint/taler-mint-httpd_test.h @@ -187,6 +187,28 @@ TMH_TEST_handler_test_rsa (struct TMH_RequestHandler *rh, /** + * Handle a "/test/transfer" request. Parses the JSON in the post, + * which must contain a "secret_enc" with the encrypted link secret, + * a "trans_priv" with the transfer private key, a "coin_pub" with + * a coin public key. A reply with the decrypted "secret" is + * returned. + * + * @param rh context of the handler + * @param connection the MHD connection to handle + * @param[in,out] connection_cls the connection's closure (can be updated) + * @param upload_data upload data + * @param[in,out] upload_data_size number of bytes (left) in @a upload_data + * @return MHD result code + */ +int +TMH_TEST_handler_test_transfer (struct TMH_RequestHandler *rh, + struct MHD_Connection *connection, + void **connection_cls, + const char *upload_data, + size_t *upload_data_size); + + +/** * Handle a "/test" request. Parses the JSON in the post. * * @param rh context of the handler |