donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit dbf3f42140ee5c0a5c00656697e45c397a49c9bf
parent 5c984c6c64a88a9859235c6bda45ec9ca09b7070
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 23 Sep 2025 16:23:20 +0200

fix #10434

Diffstat:
Msrc/donau/donau-httpd.c | 16++++++++--------
Msrc/donau/donau-httpd.h | 10+++++-----
Msrc/donau/donau-httpd_config.c | 2++
3 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/src/donau/donau-httpd.c b/src/donau/donau-httpd.c @@ -116,11 +116,6 @@ unsigned int DH_currency_fraction_digits; char *DH_currency; /** - * Our domain. - */ -char *DH_domain; - -/** * Our base URL. */ char *DH_base_url; @@ -147,6 +142,11 @@ static int connection_close; bool DH_suicide; /** + * Legal domain for this donau, to be shown to the user. + */ +char *DH_legal_domain; + +/** * Value to return from main() */ int DH_global_ret; @@ -795,12 +795,12 @@ donau_serve_process_config (void) if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (DH_cfg, "donau", - "DOMAIN", - &DH_domain)) + "LEGAL_DOMAIN", + &DH_legal_domain)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "donau", - "DOMAIN"); + "LEGAL_DOMAIN"); return GNUNET_SYSERR; } if (GNUNET_OK != diff --git a/src/donau/donau-httpd.h b/src/donau/donau-httpd.h @@ -45,6 +45,11 @@ extern const struct GNUNET_CONFIGURATION_Handle *DH_cfg; extern char *DH_donau_directory; /** + * Legal domain for this donau, to be shown to the user. + */ +extern char *DH_legal_domain; + +/** * True if we should commit suicide once all active * connections are finished. Also forces /keys requests * to terminate if they are long-polling. @@ -73,11 +78,6 @@ extern unsigned int DH_currency_fraction_digits; extern char *DH_currency; /** - * Our domain. - */ -extern char *DH_domain; - -/** * Protocol version. */ extern char *DONAU_PROTOCOL_VERSION; diff --git a/src/donau/donau-httpd_config.c b/src/donau/donau-httpd_config.c @@ -41,6 +41,8 @@ DH_handler_config (struct DH_RequestContext *rc, DH_currency), GNUNET_JSON_pack_string ("name", "donau"), + GNUNET_JSON_pack_string ("legal_domain", + DH_legal_domain), GNUNET_JSON_pack_string ("version", DONAU_PROTOCOL_VERSION)); }