diff options
author | Allan McRae <allan@archlinux.org> | 2013-10-15 07:53:51 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-31 07:20:02 +0100 |
commit | c7f159c1c94517a92c3a66208e534e1a983dddef (patch) | |
tree | d96a1fadd416704119a9b99f5ded1be42e8176db /lib/libalpm/sync.c | |
parent | 968486ecc0c20f3b075ad9b903b9df862621610a (diff) | |
download | pacman-c7f159c1c94517a92c3a66208e534e1a983dddef.tar.gz pacman-c7f159c1c94517a92c3a66208e534e1a983dddef.tar.xz |
Make functions to decode a signature and extract keyid public
These are useful for frontends.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 9081c733..a4b1bb89 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1007,11 +1007,11 @@ static int check_keyring(alpm_handle_t *handle) if((level & ALPM_SIG_PACKAGE) && pkg->base64_sig) { unsigned char *decoded_sigdata = NULL; size_t data_len; - int decode_ret = _alpm_decode_signature(pkg->base64_sig, + int decode_ret = alpm_decode_signature(pkg->base64_sig, &decoded_sigdata, &data_len); if(decode_ret == 0) { alpm_list_t *keys = NULL; - if(_alpm_extract_keyid(handle, pkg->name, decoded_sigdata, + if(alpm_extract_keyid(handle, pkg->name, decoded_sigdata, data_len, &keys) == 0) { alpm_list_t *k; for(k = keys; k; k = k->next) { |