Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-21 19:01:06 -0500
committerDan McGee <dan@archlinux.org>2011-04-24 10:48:33 -0500
commit31e55b8049ed001a993441f3efc8ffebdf360061 (patch)
treeef01f59eed8cdbf5d5e9f76c1500b9ef30ed67e9 /lib/libalpm/db.c
parenta7d33d0c36420462b3de5c7e2f8327ddbda2a129 (diff)
signing: let GPGME handle loading signatures from files
Rather than go through all the hassle of doing this ourselves, just let GPGME handle the work by passing it a file handle. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index f5e7a25f..3d593b36 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -314,27 +314,6 @@ pmdb_t *_alpm_db_new(const char *treename, int is_local)
return db;
}
-const pmpgpsig_t *_alpm_db_pgpsig(pmdb_t *db)
-{
- ALPM_LOG_FUNC;
-
- /* Sanity checks */
- ASSERT(db != NULL, return(NULL));
-
- if(db->pgpsig.data == NULL) {
- const char *dbfile;
- int ret;
-
- dbfile = _alpm_db_path(db);
-
- /* TODO: do something with ret value */
- ret = _alpm_load_signature(dbfile, &(db->pgpsig));
- (void)ret;
- }
-
- return &(db->pgpsig);
-}
-
void _alpm_db_free(pmdb_t *db)
{
ALPM_LOG_FUNC;
@@ -343,8 +322,6 @@ void _alpm_db_free(pmdb_t *db)
_alpm_db_free_pkgcache(db);
/* cleanup server list */
FREELIST(db->servers);
- /* only need to free data */
- FREE(db->pgpsig.data);
FREE(db->_path);
FREE(db->treename);
FREE(db);