summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/signing.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-11-02 14:06:45 +0100
committerAllan McRae <allan@archlinux.org>2013-02-09 03:43:37 +0100
commit05745089ac7009e5de84d676dd0823acd8c4d1fc (patch)
tree41e6102648ddc45627700e9396050910883336b9 /lib/libalpm/signing.h
parent4ec6848f91ed85ab113185bb74b83a5faf21160f (diff)
downloadpacman-05745089ac7009e5de84d676dd0823acd8c4d1fc.tar.gz
pacman-05745089ac7009e5de84d676dd0823acd8c4d1fc.tar.xz
Add function to extract key id from signatures
This does not support all possibilities of RFC4880, but it does cover every key currently used in Arch Linux. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/signing.h')
-rw-r--r--lib/libalpm/signing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/signing.h b/lib/libalpm/signing.h
index 42b60b1f..ce9edcdc 100644
--- a/lib/libalpm/signing.h
+++ b/lib/libalpm/signing.h
@@ -34,6 +34,9 @@ int _alpm_process_siglist(alpm_handle_t *handle, const char *identifier,
int _alpm_key_in_keychain(alpm_handle_t *handle, const char *fpr);
int _alpm_key_import(alpm_handle_t *handle, const char *fpr);
+int _alpm_extract_keyid(alpm_handle_t *handle, const char *identifier,
+ const unsigned char *sig, const size_t len, alpm_list_t **keys);
+
#endif /* _ALPM_SIGNING_H */
/* vim: set ts=2 sw=2 noet: */