From c7f159c1c94517a92c3a66208e534e1a983dddef Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 15 Oct 2013 15:53:51 +1000 Subject: Make functions to decode a signature and extract keyid public These are useful for frontends. Signed-off-by: Allan McRae --- lib/libalpm/alpm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libalpm/alpm.h') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index b049007c..29b9f378 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1075,6 +1075,12 @@ int alpm_db_check_pgp_signature(alpm_db_t *db, alpm_siglist_t *siglist); int alpm_siglist_cleanup(alpm_siglist_t *siglist); +int alpm_decode_signature(const char *base64_data, + unsigned char **data, size_t *data_len); + +int alpm_extract_keyid(alpm_handle_t *handle, const char *identifier, + const unsigned char *sig, const size_t len, alpm_list_t **keys); + /* * Groups */ -- cgit v1.2.3-24-g4f1b