summaryrefslogtreecommitdiffabout
path: root/src/gpg.c
authorSergey Poznyakoff <gray@gnu.org.ua>2013-03-12 11:26:54 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-03-12 11:26:54 (GMT)
commit293108d7806aa3c0c5e706237b3788b261779e66 (patch) (side-by-side diff)
treef3ea5c3419c5de0284da68f1d1b6002933e02a73 /src/gpg.c
parent02c6a0ad553ad51f91af9d9e6c28f2529e759305 (diff)
downloadwydawca-293108d7806aa3c0c5e706237b3788b261779e66.tar.gz
wydawca-293108d7806aa3c0c5e706237b3788b261779e66.tar.bz2
Improve triplet API.
* src/wydawca.h (uploader_info): Rename to wy_user. (file_triplet) <uploader_count>: Remove. <admin_list>: New member. (triplet_get_uploaders,triplet_get_uploader) (triplet_get_admins): New protos. * src/triplet.c (wy_user_create) (wy_userlist_free): New static functions. (hash_triplet_free): Use wy_userlist_free. (triplet_get_uploaders,triplet_get_uploader) (triplet_get_admins): New functions. * src/verify.c (verify_directive_file): Rewrite using triplet_get_uploaders. * src/gpg.c (verify_directive_signature): Call triplet_get_uploaders to initialize the uploaders list. * modules/mailutils/mod_mailutils.c (get_recipient): Remove. (get_owner_address): New function. All callers updated. Remove useless const qualifiers.
Diffstat (limited to 'src/gpg.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpg.c b/src/gpg.c
index 7b5146e..ca7c185 100644
--- a/src/gpg.c
+++ b/src/gpg.c
@@ -214,12 +214,12 @@ verify_directive_signature(struct file_triplet *trp)
gpgme_data_t key_data, directive_data, plain = NULL;
gpgme_error_t ec;
int rc;
- struct uploader_info *uptr;
+ struct wy_user *uptr;
create_gpg_homedir();
fail_if_err(gpgme_new(&ctx));
- for (uptr = trp->uploader_list; uptr; uptr = uptr->next) {
+ for (uptr = triplet_get_uploaders(trp); uptr; uptr = uptr->next) {
gpgme_import_result_t res;
gpgme_import_status_t pstat;

Return to:

Send suggestions and report system problems to the System administrator.