gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-donau] branch master updated: handle get keys


From: gnunet
Subject: [taler-donau] branch master updated: handle get keys
Date: Tue, 27 Feb 2024 19:36:52 +0100

This is an automated email from the git hooks/post-receive script.

johannes-casaburi pushed a commit to branch master
in repository donau.

The following commit(s) were added to refs/heads/master by this push:
     new 50dd030  handle get keys
50dd030 is described below

commit 50dd030f07149531e960c45b536ab43bae9cdc40
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
AuthorDate: Tue Feb 27 19:36:15 2024 +0100

    handle get keys
---
 contrib/gana                 |  2 +-
 src/donau/donau-httpd.c      |  2 +-
 src/donau/donau-httpd.h      | 13 +++++++++++++
 src/donau/donau-httpd_keys.c |  1 +
 4 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index 72be9c8..2b58127 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 72be9c8454abc39eb35e1019545ceda8ece7a6db
+Subproject commit 2b581279ae67a1068b07a8c010ac1ab7b85e18df
diff --git a/src/donau/donau-httpd.c b/src/donau/donau-httpd.c
index f2c6479..c0413d7 100644
--- a/src/donau/donau-httpd.c
+++ b/src/donau/donau-httpd.c
@@ -466,7 +466,7 @@ handle_mhd_request (void *cls,
     {
       .url = "keys",
       .method = MHD_HTTP_METHOD_GET,
-      .handler.get = &DH_handler_keys
+      .handler.get = &DH_keys_get_handler
     },
     /* GET charities */
     {
diff --git a/src/donau/donau-httpd.h b/src/donau/donau-httpd.h
index 0a48a18..840ca5d 100644
--- a/src/donau/donau-httpd.h
+++ b/src/donau/donau-httpd.h
@@ -235,4 +235,17 @@ struct DH_RequestHandler
   bool nargs_is_upper_bound;
 };
 
+/**
+ * Function to call to handle requests to "/keys" by sending
+ * back our current key material.
+ *
+ * @param rc request context
+ * @param args array of additional options (must be empty for this function)
+ * @return MHD result code
+ */
+MHD_RESULT
+DH_keys_get_handler (struct DH_RequestContext *rc,
+                     const char *const args[]);
+
+
 #endif
diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c
index d3d7761..9c87d04 100644
--- a/src/donau/donau-httpd_keys.c
+++ b/src/donau/donau-httpd_keys.c
@@ -19,6 +19,7 @@
  * @author Christian Grothoff
  * @author Özgür Kesim
  * @author Pius Loosli
+ * @author Johannes Casaburi
  */
 #include <taler/platform.h>
 #include <taler/taler_json_lib.h>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]