aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_test.h
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_test.h
parent9637844a8f73b3674bfad6bd5cd5f95fd20c0e17 (diff)
implementing /test/ecdhe
Diffstat (limited to 'src/mint/taler-mint-httpd_test.h')
-rw-r--r--src/mint/taler-mint-httpd_test.h22
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 9d340eb4..4ac1d94a 100644
--- a/src/mint/taler-mint-httpd_test.h
+++ b/src/mint/taler-mint-httpd_test.h
@@ -50,6 +50,28 @@ TMH_TEST_handler_test_base32 (struct TMH_RequestHandler *rh,
/**
+ * Handle a "/test/ecdhe" request. Parses the JSON in the post, which
+ * must contain a "ecdhe_pub" with a public key and an "ecdhe_priv"
+ * with a private key. The reply is the resulting JSON is an object
+ * with the field "ecdh_hash" containing a Crockford Base32-encoded
+ * string representing the hash derived via ECDH of the two keys.
+ *
+ * @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_ecdhe (struct TMH_RequestHandler *rh,
+ struct MHD_Connection *connection,
+ void **connection_cls,
+ const char *upload_data,
+ size_t *upload_data_size);
+
+
+/**
* Handle a "/test/ecdsa" request. Parses the JSON in the post,
* which must contain a "ecdsa_pub" with a public key and an
*"ecdsa_sig" with the corresponding signature for a purpose