commit 64a908fe3b82011e8bff46dc9f9fd784fc3d7d7b
parent cb8793f6f3862858c4c7280877bed837317ff29f
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 30 Jul 2026 10:15:00 +0200
expose build_version in /config
Diffstat:
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_get-config.c b/src/exchange/taler-exchange-httpd_get-config.c
@@ -18,6 +18,7 @@
* @brief Handle /config requests
* @author Christian Grothoff
*/
+#include "platform.h"
#include <gnunet/gnunet_json_lib.h>
#include "taler-exchange-httpd_get-config.h"
#include "taler/taler_json_lib.h"
@@ -47,6 +48,9 @@ TEH_handler_config (struct TEH_RequestContext *rc,
"currency",
TEH_currency),
GNUNET_JSON_pack_string (
+ "build_version",
+ PACKAGE_VERSION),
+ GNUNET_JSON_pack_string (
"name",
"taler-exchange"),
GNUNET_JSON_pack_allow_null (
diff --git a/src/exchange/taler-exchange-httpd_get-config.h b/src/exchange/taler-exchange-httpd_get-config.h
@@ -41,7 +41,7 @@
*
* Returned via both /config and /keys endpoints.
*/
-#define EXCHANGE_PROTOCOL_VERSION "37:0:3"
+#define EXCHANGE_PROTOCOL_VERSION "38:0:4"
/**
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
@@ -35,12 +35,12 @@
* Which version of the Taler protocol is implemented
* by this library? Used to determine compatibility.
*/
-#define EXCHANGE_PROTOCOL_CURRENT 37
+#define EXCHANGE_PROTOCOL_CURRENT 38
/**
* How many versions are we backwards compatible with?
*/
-#define EXCHANGE_PROTOCOL_AGE 3
+#define EXCHANGE_PROTOCOL_AGE 4
/**
* Set to 1 for extra debug logging.
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
@@ -22,7 +22,7 @@
* @brief initialize libgnunet OS subsystem for Taler.
* @author Christian Grothoff
*/
-#include "platform.h" /* UNNECESSARY? */
+#include "platform.h"
#include <gnunet/gnunet_util_lib.h>
#include "taler/taler_util.h"