Add functions for verifying database signature
commited6fda2f98bdcde56a67e43a6bcf644c549892a2
authorAllan McRae <allan@archlinux.org>
Mon, 22 Nov 2010 05:06:09 +0000 (22 15:06 +1000)
committerDan McGee <dan@archlinux.org>
Thu, 24 Mar 2011 03:22:33 +0000 (23 22:22 -0500)
tree1e28badd92918a5a1e53eb48f8b3d0423cd2a484
parentef26c445245d0d25dfbca8f6feb590d3288d76d4
Add functions for verifying database signature

Add a pmpgpsig_t struct to the database entry struct and functions for
the lazy loading of database signatures.  Add a function for checking
database signatures, reusing (and generalizing) the code currently used
for checking package signatures.

TODO: The code for reading in signature files from the filesystem is
duplicated for local packages and database and needs refactoring.

Signed-off-by: Allan McRae <allan@archlinux.org>
lib/libalpm/alpm.h
lib/libalpm/db.c
lib/libalpm/db.h
lib/libalpm/package.h
lib/libalpm/signing.c
lib/libalpm/signing.h