From 05745089ac7009e5de84d676dd0823acd8c4d1fc Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 2 Nov 2012 23:06:45 +1000 Subject: 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 --- lib/libalpm/signing.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libalpm/signing.h') 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: */ -- cgit v1.2.3-24-g4f1b