diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-17 19:45:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-17 19:45:30 +0200 |
commit | 759837da70a819ce1c32efd5e2db6537367e098b (patch) | |
tree | becf5a1f6c77a70c27b88eb6ae6e725db2894f0b /src/mint/taler-mint-httpd.c | |
parent | c90e479ea5dcb5c994d765110fa01e88fced7e12 (diff) | |
download | exchange-759837da70a819ce1c32efd5e2db6537367e098b.tar.xz |
adding /test/ecdsa and /test/eddsa to test client signing and verification over Curve25519
Diffstat (limited to 'src/mint/taler-mint-httpd.c')
-rw-r--r-- | src/mint/taler-mint-httpd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c index b72db4768..32bad4048 100644 --- a/src/mint/taler-mint-httpd.c +++ b/src/mint/taler-mint-httpd.c @@ -210,6 +210,20 @@ handle_mhd_request (void *cls, { "/test/base32", NULL, "text/plain", "Only POST is allowed", 0, &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, + + { "/test/ecdsa", MHD_HTTP_METHOD_POST, "application/json", + NULL, 0, + &TMH_TEST_handler_test_ecdsa, MHD_HTTP_OK }, + { "/test/ecdsa", NULL, "text/plain", + "Only POST is allowed", 0, + &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, + + { "/test/eddsa", MHD_HTTP_METHOD_POST, "application/json", + NULL, 0, + &TMH_TEST_handler_test_eddsa, MHD_HTTP_OK }, + { "/test/eddsa", NULL, "text/plain", + "Only POST is allowed", 0, + &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, #endif { NULL, NULL, NULL, NULL, 0, 0 } |