pacman/lib/libalpm
Dan McGee db3b86e7f3 Do database signature checking at load time
This is the ideal place to do it as all clients should be checking the
return value and ensuring there are no errors. This is similar to
pkg_load().

We also add an additional step of validation after we download a new
database; a subsequent '-y' operation can potentially invalidate the
original check at registration time.

Note that this implementation is still a bit naive; if a signature is
invalid it is currently impossible to refresh and re-download the file
without manually deleting it first. Similarly, if one downloads a
database and the check fails, the database object is still there and can
be used. These shortcomings will be addressed in a future commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-24 02:34:50 -05:00
..
po po/: split into scripts/po/ and src/pacman/po/ 2011-06-23 22:50:01 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
Makefile.am Allow conditional compilation with GPGME 2011-04-27 16:58:58 -05:00
add.c Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
add.h Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
alpm.c Ensure handle is valid and pm_errno is reset when calling into API 2011-06-14 10:01:08 -05:00
alpm.h Do database signature checking at load time 2011-06-24 02:34:50 -05:00
alpm_list.c Merge branch 'maint' 2011-06-01 12:13:49 -05:00
alpm_list.h Add new alpm_list_remove_item() function 2011-02-04 09:55:46 +10:00
backup.c Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
backup.h Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
base64.c Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
base64.h Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
be_local.c Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
be_package.c Remove three unnecessary usages of alpm_list_count() 2011-06-24 01:36:47 -05:00
be_sync.c Do database signature checking at load time 2011-06-24 02:34:50 -05:00
conflict.c Make struct pmconflict_t public 2011-06-16 11:57:30 -05:00
conflict.h Make struct pmconflict_t public 2011-06-16 11:57:30 -05:00
db.c Do database signature checking at load time 2011-06-24 02:34:50 -05:00
db.h Do database signature checking at load time 2011-06-24 02:34:50 -05:00
delta.c Correctly duplicate delta objects 2011-06-20 00:10:11 -05:00
delta.h Correctly duplicate delta objects 2011-06-20 00:10:11 -05:00
deps.c Make pmdepend_t and pmdepmissing_t public 2011-06-16 11:57:33 -05:00
deps.h Make pmdepend_t and pmdepmissing_t public 2011-06-16 11:57:33 -05:00
diskspace.c Switch all logging to use handle directly 2011-06-13 19:41:16 -05:00
diskspace.h Remove global handle from diskspace.c 2011-06-03 12:36:13 -05:00
dload.c Documented _alpm_download() 2011-06-20 00:18:03 -05:00
dload.h Move pm_errno onto the handle 2011-06-13 19:38:38 -05:00
error.c Move pm_errno onto the handle 2011-06-13 19:38:38 -05:00
graph.c Move pm_errno onto the handle 2011-06-13 19:38:38 -05:00
graph.h Include "config.h" in header files using off_t 2011-04-15 18:40:32 -05:00
group.c Make pmgrp_t public 2011-06-16 11:58:04 -05:00
group.h Make pmgrp_t public 2011-06-16 11:58:04 -05:00
handle.c Improve cachedir removal and error handling 2011-06-20 00:18:29 -05:00
handle.h API: change 'signaturedir' to 'gpgdir' 2011-06-15 12:02:29 -05:00
log.c Don't call public API in _alpm_log() 2011-06-20 00:03:53 -05:00
log.h Switch all logging to use handle directly 2011-06-13 19:41:16 -05:00
md5.c libalpm md5: use larger and dynamic buffer 2010-09-02 10:33:21 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
package.h Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
pkghash.c Switch all logging to use handle directly 2011-06-13 19:41:16 -05:00
pkghash.h alpm: remove public visibility of pmpkghash_t 2011-02-25 09:45:13 -06:00
remove.c Convert backup list to new pmbackup_t type 2011-06-22 12:31:12 -05:00
remove.h Remove global handle from remove.c 2011-06-03 12:53:53 -05:00
signing.c API: change 'signaturedir' to 'gpgdir' 2011-06-15 12:02:29 -05:00
signing.h Require handle argument to all alpm_option_(get|set)_*() methods 2011-06-09 14:24:45 -05:00
sync.c Make pmgrp_t public 2011-06-16 11:58:04 -05:00
sync.h Remove global handle dependencies from sync/upgrade paths 2011-06-03 13:18:36 -05:00
trans.c Ensure handle is valid and pm_errno is reset when calling into API 2011-06-14 10:01:08 -05:00
trans.h Move pm_errno onto the handle 2011-06-13 19:38:38 -05:00
util.c Clean up util md5sum method 2011-06-20 00:08:15 -05:00
util.h lib/util: call _alpm_log before setting handle->pm_errno 2011-06-20 10:43:54 -05:00
version.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00