summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-18 00:24:04 +0200
committerChristian Grothoff <christian@grothoff.org>2015-04-18 00:24:04 +0200
commitc334d5ea05a0353afe3ca3ecd18b2353be2b2031 (patch)
tree10874163803052ea0c8d9f86800fa0d3b4e94602 /src/mint/taler-mint-httpd.c
parent9637844a8f73b3674bfad6bd5cd5f95fd20c0e17 (diff)
downloadexchange-c334d5ea05a0353afe3ca3ecd18b2353be2b2031.tar.gz
exchange-c334d5ea05a0353afe3ca3ecd18b2353be2b2031.tar.bz2
exchange-c334d5ea05a0353afe3ca3ecd18b2353be2b2031.zip
implementing /test/ecdhe
Diffstat (limited to 'src/mint/taler-mint-httpd.c')
-rw-r--r--src/mint/taler-mint-httpd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c
index c61d57985..b04583c2a 100644
--- a/src/mint/taler-mint-httpd.c
+++ b/src/mint/taler-mint-httpd.c
@@ -211,13 +211,20 @@ handle_mhd_request (void *cls,
"Only POST is allowed", 0,
&TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED },
+ { "/test/ecdhe", MHD_HTTP_METHOD_POST, "application/json",
+ NULL, 0,
+ &TMH_TEST_handler_test_ecdhe, MHD_HTTP_OK },
+ { "/test/ecdhe", 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 },