commit 9715288993d53786b4213c06aae79f20ba95b50c
parent 43df3975f35b588b38f31d90ee03aca263619238
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 4 Aug 2026 19:01:41 +0200
secret_name is optional
Diffstat:
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c b/src/anastasis/anastasis-gtk_action.c
@@ -1947,8 +1947,9 @@ expand_policy_list (void *cls,
version),
GNUNET_JSON_pack_uint64 ("attribute_mask",
attribute_mask),
- GNUNET_JSON_pack_string ("secret_name",
- secret_name),
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_string ("secret_name",
+ secret_name)),
GNUNET_JSON_pack_string ("date_string",
GNUNET_TIME_timestamp2s (server_time)),
GNUNET_JSON_pack_uint64 ("date",
diff --git a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
@@ -152,10 +152,10 @@ question_certainty (void)
#if ! HAVE_HPDF_H
gtk_widget_set_visible (GTK_WIDGET (
- gtk_builder_get_object (
- builder,
- "anastasis_gtk_print_details_button")),
- FALSE);
+ gtk_builder_get_object (
+ builder,
+ "anastasis_gtk_print_details_button")),
+ FALSE);
#endif
widget = GTK_WIDGET (GCG_get_main_window_object (
"anastasis_gtk_auth_button_grid"));
@@ -410,9 +410,10 @@ forward_secret_selecting (void)
GNUNET_JSON_pack_uint64 ("attribute_mask",
AG_row_uint (row,
"attribute_mask")),
- GNUNET_JSON_pack_string ("secret_name",
- AG_row_string (row,
- "secret_name")));
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_string ("secret_name",
+ AG_row_string (row,
+ "secret_name"))));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Proceeding with policy version %u at provider %s\n",
(unsigned int) AG_row_uint (row,