diff options
author | Florian Dold <florian@dold.me> | 2021-10-18 18:27:44 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-10-18 18:27:44 +0200 |
commit | d25d97c15002767cf3374eff38ec6cff92e15a1b (patch) | |
tree | 673e8399d508b1edc70bd0f1dc6810b0c50920e9 | |
parent | e3f978d1b6ad233f0a6ff179b04f575417a41e09 (diff) | |
download | anastasis-d25d97c15002767cf3374eff38ec6cff92e15a1b.tar.gz anastasis-d25d97c15002767cf3374eff38ec6cff92e15a1b.tar.bz2 anastasis-d25d97c15002767cf3374eff38ec6cff92e15a1b.zip |
spell key_share_data like in docs
-rw-r--r-- | src/backend/anastasis-httpd_truth_upload.c | 8 | ||||
-rw-r--r-- | src/restclient/anastasis_api_truth_store.c | 2 |
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 index d9e63c3..8eb410c 100644 --- 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 index 74b9238..18a3682 100644 --- 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), |