index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-06-24 15:41:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-30 16:16:41 -0500 |
commit | 23a2d2c16a87dc8744b8307bded9fabb503dde13 (patch) | |
tree | 78137ad8dc1e68dfa7e8c37e006d53704d1af3b8 /lib/libalpm/db.c | |
parent | 68284da0d72bf27ac3dc5cfc1cd02d16f824130c (diff) |
-rw-r--r-- | lib/libalpm/db.c | 11 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index b6a436f1..6c1b95c0 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -219,6 +219,17 @@ const char SYMEXPORT *alpm_db_get_name(const alpm_db_t *db) return db->treename; } +/** Get the signature verification level for a database. */ +pgp_verify_t SYMEXPORT alpm_db_get_sigverify_level(alpm_db_t *db) +{ + ASSERT(db != NULL, return -1); + if(db->pgp_verify == PM_PGP_VERIFY_UNKNOWN) { + return alpm_option_get_default_sigverify(db->handle); + } else { + return db->pgp_verify; + } +} + /** Check the validity of a database. */ int SYMEXPORT alpm_db_get_valid(alpm_db_t *db) { |