diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-24 20:24:42 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-29 02:51:54 +0200 |
commit | de43d00db071a04653cff592607647bb9c01d025 (patch) | |
tree | 9ad6cc271d87124a6d8004a76e53f16f052d222c /lib/libalpm/signing.h | |
parent | 12387ca4e5c16994bacad52c142ef94868ba545a (diff) | |
download | pacman-de43d00db071a04653cff592607647bb9c01d025.tar.gz pacman-de43d00db071a04653cff592607647bb9c01d025.tar.xz |
Refactor signature result return format
I was trying to take a shortcut and not introduce a wrapper struct for
the signature results, so packed it all into alpm_sigresult_t in the
first iteration. However, this is painful when one wants to add new
fields or only return information regarding a single signature.
Refactor the type into a few components which are exposed to the end
user, and will allow a lot more future flexibility. This also exposes
more information regarding the key to the frontend than was previously
available.
The "private" void *data pointer is used by the library to store the
actual key object returned by gpgme; it is typed this way so the
frontend has no expectations of what is there, and so we don't have any
hard gpgme requirement in our public API.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/signing.h')
-rw-r--r-- | lib/libalpm/signing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/signing.h b/lib/libalpm/signing.h index 3c98a482..8e47b2cd 100644 --- a/lib/libalpm/signing.h +++ b/lib/libalpm/signing.h @@ -23,7 +23,7 @@ char *_alpm_sigpath(alpm_handle_t *handle, const char *path); int _alpm_gpgme_checksig(alpm_handle_t *handle, const char *path, - const char *base64_sig, alpm_sigresult_t *result); + const char *base64_sig, alpm_siglist_t *result); int _alpm_check_pgp_helper(alpm_handle_t *handle, const char *path, const char *base64_sig, int optional, int marginal, int unknown); |