diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-18 00:09:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-18 00:09:08 +0200 |
commit | 9637844a8f73b3674bfad6bd5cd5f95fd20c0e17 (patch) | |
tree | 1b8ddd8c803a203093aa0b375b9ef3b9b361862c /src/mint/taler-mint-httpd_test.h | |
parent | cc469049767590884f6f8520358c252c94201c5a (diff) |
implementing /test/rsa
Diffstat (limited to 'src/mint/taler-mint-httpd_test.h')
-rw-r--r-- | src/mint/taler-mint-httpd_test.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_test.h b/src/mint/taler-mint-httpd_test.h index 609473ec1..9d340eb4f 100644 --- a/src/mint/taler-mint-httpd_test.h +++ b/src/mint/taler-mint-httpd_test.h @@ -94,6 +94,25 @@ TMH_TEST_handler_test_eddsa (struct TMH_RequestHandler *rh, const char *upload_data, size_t *upload_data_size); +/** + * Handle a "/test/rsa" request. Parses the JSON in the post, which + * must contain an "blind_ev" blinded value. An RSA public key + * ("rsa_pub") and a blinded signature ("rsa_blind_sig") are 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_rsa (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. |