From 759837da70a819ce1c32efd5e2db6537367e098b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Apr 2015 19:45:30 +0200 Subject: adding /test/ecdsa and /test/eddsa to test client signing and verification over Curve25519 --- src/mint/taler-mint-httpd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mint/taler-mint-httpd.c') diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c index b72db476..32bad404 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 } -- cgit v1.2.3