From 11f4a7a48ebd52c69345c3baced5b14974931643 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 15 Aug 2011 08:56:58 -0500 Subject: Only check necessary signatures and checksums The precedence goes as follows: signature > sha256sum > md5sum Add some logic and helper methods to check what we have available when loading a package, and then only check what is necessary to verify the package. This should speed up sync database verifies as we no longer will be doing both a checksum and a signature validation. Signed-off-by: Dan McGee --- lib/libalpm/signing.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/signing.h') diff --git a/lib/libalpm/signing.h b/lib/libalpm/signing.h index 22f6357e..d07057a2 100644 --- a/lib/libalpm/signing.h +++ b/lib/libalpm/signing.h @@ -21,6 +21,7 @@ #include "alpm.h" +char *_alpm_sigpath(alpm_handle_t *handle, const char *path); int _alpm_gpgme_checksig(alpm_handle_t *handle, const char *path, const char *base64_sig, alpm_sigresult_t *result); int _alpm_check_pgp_helper(alpm_handle_t *handle, const char *path, -- cgit v1.2.3-24-g4f1b