diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-10-02 22:51:54 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-10-02 22:51:54 +0200 |
commit | 72cbf663952bc95888aa2187894da78725e7590c (patch) | |
tree | 0d0f9758e082a36487a85fd4335f0342f5c1e6f6 /src/exchange/taler-exchange-httpd_keys.c | |
parent | 04c7e0bb337dd88dde60293d94d2e192a8fc2ff5 (diff) |
WiP: added auction_brandt as extension
- added an extension to handle auctions via libbrandt
- /extensions/auction_brandt GET and POST handler defined
- initial parsing of transcript.json implemented, yet WiP
- multiple cleanups and changes to extension handling
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index 4fb8a717..4761f314 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -1916,18 +1916,23 @@ create_krd (struct TEH_KeyStateHandle *ksh, /* flag our findings so far */ has_extensions = true; - GNUNET_assert (NULL != extension->config_json); ext = GNUNET_JSON_PACK ( GNUNET_JSON_pack_bool ("critical", extension->critical), GNUNET_JSON_pack_string ("version", - extension->version), - GNUNET_JSON_pack_object_incref ("config", - extension->config_json) + extension->version) ); GNUNET_assert (NULL != ext); + if (extension->has_config) + { + GNUNET_assert (extension->config_json); + json_object_set_new (ext, + "config", + extension->config_json); + } + r = json_object_set_new ( extensions, extension->name, |