diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-08 16:36:20 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-08 16:36:20 +0200 |
commit | 3e606246a518b8e7049d94e499df5e7ce13b37e9 (patch) | |
tree | 79feae1dbe0007660cc2145912554cf690f21a9f /src/lib/sync_api_download.c | |
parent | b2efa7c110f9fd172b7fee40eecf14fee1f09ca6 (diff) | |
download | sync-3e606246a518b8e7049d94e499df5e7ce13b37e9.tar.gz sync-3e606246a518b8e7049d94e499df5e7ce13b37e9.tar.bz2 sync-3e606246a518b8e7049d94e499df5e7ce13b37e9.zip |
adaptations for signing API change in GNUnet (#6164)
Diffstat (limited to 'src/lib/sync_api_download.c')
-rw-r--r-- | src/lib/sync_api_download.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/sync_api_download.c b/src/lib/sync_api_download.c index f381075..e7e90cd 100644 --- a/src/lib/sync_api_download.c +++ b/src/lib/sync_api_download.c @@ -109,17 +109,18 @@ handle_download_finished (void *cls, case MHD_HTTP_OK: { struct SYNC_DownloadDetails dd; - struct SYNC_UploadSignaturePS usp; + struct SYNC_UploadSignaturePS usp = { + .purpose.purpose = htonl (TALER_SIGNATURE_SYNC_BACKUP_UPLOAD), + .purpose.size = htonl (sizeof (usp)), + .old_backup_hash = download->sync_previous + }; - usp.purpose.purpose = htonl (TALER_SIGNATURE_SYNC_BACKUP_UPLOAD); - usp.purpose.size = htonl (sizeof (usp)); - usp.old_backup_hash = download->sync_previous; GNUNET_CRYPTO_hash (data, data_size, &usp.new_backup_hash); if (GNUNET_OK != GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_SYNC_BACKUP_UPLOAD, - &usp.purpose, + &usp, &download->account_sig.eddsa_sig, &download->account_pub.eddsa_pub)) { |