commit d25d97c15002767cf3374eff38ec6cff92e15a1b
parent e3f978d1b6ad233f0a6ff179b04f575417a41e09
Author: Florian Dold <florian@dold.me>
Date: Mon, 18 Oct 2021 18:27:44 +0200
spell key_share_data like in docs
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/backend/anastasis-httpd_truth_upload.c b/src/backend/anastasis-httpd_truth_upload.c
@@ -519,7 +519,7 @@ AH_handler_truth_post (
struct TruthUploadContext *tuc = hc->ctx;
MHD_RESULT ret;
int res;
- struct ANASTASIS_CRYPTO_EncryptedKeyShareP keyshare_data;
+ struct ANASTASIS_CRYPTO_EncryptedKeyShareP key_share_data;
void *encrypted_truth;
size_t encrypted_truth_size;
const char *truth_mime = NULL;
@@ -528,8 +528,8 @@ AH_handler_truth_post (
uint32_t storage_years;
struct GNUNET_TIME_Absolute paid_until;
struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_fixed_auto ("keyshare_data",
- &keyshare_data),
+ GNUNET_JSON_spec_fixed_auto ("key_share_data",
+ &key_share_data),
GNUNET_JSON_spec_string ("type",
&type),
GNUNET_JSON_spec_varsize ("encrypted_truth",
@@ -776,7 +776,7 @@ AH_handler_truth_post (
GNUNET_STRINGS_absolute_time_to_string (paid_until));
qs = db->store_truth (db->cls,
truth_uuid,
- &keyshare_data,
+ &key_share_data,
(NULL == truth_mime)
? ""
: truth_mime,
diff --git a/src/restclient/anastasis_api_truth_store.c b/src/restclient/anastasis_api_truth_store.c
@@ -296,7 +296,7 @@ ANASTASIS_truth_store (
json_t *truth_data;
truth_data = GNUNET_JSON_PACK (
- GNUNET_JSON_pack_data_auto ("keyshare_data",
+ GNUNET_JSON_pack_data_auto ("key_share_data",
encrypted_keyshare),
GNUNET_JSON_pack_string ("type",
type),