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/sync/sync-httpd_backup_post.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/sync/sync-httpd_backup_post.c')
-rw-r--r-- | src/sync/sync-httpd_backup_post.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sync/sync-httpd_backup_post.c b/src/sync/sync-httpd_backup_post.c index 70d19df..c8a421d 100644 --- a/src/sync/sync-httpd_backup_post.c +++ b/src/sync/sync-httpd_backup_post.c @@ -717,15 +717,16 @@ SH_backup_post (struct MHD_Connection *connection, } /* validate signature */ { - struct SYNC_UploadSignaturePS usp; + struct SYNC_UploadSignaturePS usp = { + .purpose.size = htonl (sizeof (usp)), + .purpose.purpose = htonl (TALER_SIGNATURE_SYNC_BACKUP_UPLOAD), + .old_backup_hash = bc->old_backup_hash, + .new_backup_hash = bc->new_backup_hash + }; - usp.purpose.size = htonl (sizeof (struct SYNC_UploadSignaturePS)); - usp.purpose.purpose = htonl (TALER_SIGNATURE_SYNC_BACKUP_UPLOAD); - usp.old_backup_hash = bc->old_backup_hash; - usp.new_backup_hash = bc->new_backup_hash; if (GNUNET_OK != GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_SYNC_BACKUP_UPLOAD, - &usp.purpose, + &usp, &bc->account_sig.eddsa_sig, &account->eddsa_pub)) { |