diff options
author | Allan McRae <allan@archlinux.org> | 2012-11-02 14:44:11 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-09 03:43:37 +0100 |
commit | 198154962beca8707b19f5efb773f1a3ad10e154 (patch) | |
tree | ecae5f4b35af198c96670795aac98cfe74475425 /lib/libalpm/signing.c | |
parent | 05745089ac7009e5de84d676dd0823acd8c4d1fc (diff) | |
download | pacman-198154962beca8707b19f5efb773f1a3ad10e154.tar.gz pacman-198154962beca8707b19f5efb773f1a3ad10e154.tar.xz |
Make decode_signature available to the library
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/signing.c')
-rw-r--r-- | lib/libalpm/signing.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index dc882821..aa7e134a 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -418,7 +418,8 @@ int _alpm_key_import(alpm_handle_t *handle, const char *fpr) { * @param data_len the length of the returned data * @return 0 on success, -1 on failure to properly decode */ -static int decode_signature(const char *base64_data, + +int _alpm_decode_signature(const char *base64_data, unsigned char **data, size_t *data_len) { size_t len = strlen(base64_data); @@ -518,7 +519,7 @@ int _alpm_gpgme_checksig(alpm_handle_t *handle, const char *path, if(base64_sig) { /* memory-based, we loaded it from a sync DB */ size_t data_len; - int decode_ret = decode_signature(base64_sig, + int decode_ret = _alpm_decode_signature(base64_sig, &decoded_sigdata, &data_len); if(decode_ret) { handle->pm_errno = ALPM_ERR_SIG_INVALID; |