summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-03-06 23:17:31 +0000
committerjbj <devnull@localhost>2002-03-06 23:17:31 +0000
commitc6449e9c4439b7f2cf6c620a78d464b10a6c75b1 (patch)
treeedf6be712b9caa5fd00671f1798dec7399746b78 /rpmdb
parent2e2d1cad39b9bf8af73ec7b2c584236aabcdad14 (diff)
downloadlibrpm-tizen-c6449e9c4439b7f2cf6c620a78d464b10a6c75b1.tar.gz
librpm-tizen-c6449e9c4439b7f2cf6c620a78d464b10a6c75b1.tar.bz2
librpm-tizen-c6449e9c4439b7f2cf6c620a78d464b10a6c75b1.zip
- add header DSA signature.
CVS patchset: 5345 CVS date: 2002/03/06 23:17:31
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/header.c2
-rw-r--r--rpmdb/rpmdb.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/rpmdb/header.c b/rpmdb/header.c
index 866936fa7..c160b69af 100644
--- a/rpmdb/header.c
+++ b/rpmdb/header.c
@@ -2,7 +2,7 @@
* \file lib/header.c
*/
-/* RPM - Copyright (C) 1995-2000 Red Hat Software */
+/* RPM - Copyright (C) 1995-2002 Red Hat Software */
/* Data written to file descriptors is in network byte order. */
/* Data read from file descriptors is expected to be in */
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index b879142aa..9c4c20f9c 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -44,6 +44,7 @@ extern void regfree (/*@only@*/ regex_t *preg)
/*@access dbiIndexItem@*/
/*@access Header@*/ /* XXX compared with NULL */
/*@access rpmdbMatchIterator@*/
+/*@access pgpDig@*/
/*@unchecked@*/
static int _debug = 0;
@@ -2610,7 +2611,7 @@ int rpmdbRemove(rpmdb db, /*@unused@*/ int rid, unsigned int hdrNum)
ssize_t pktlen;
if (b64decode(rpmvals[i], (void **)&pkt, &pktlen))
- continue;
+ /*@innercontinue@*/ continue;
(void) pgpPrtPkts(pkt, pktlen, dig, 0);
memcpy(bin, dig->pubkey.signid, 8);
pkt = _free(pkt);
@@ -2621,8 +2622,8 @@ int rpmdbRemove(rpmdb db, /*@unused@*/ int rid, unsigned int hdrNum)
}
/*@fallthrough@*/
default:
- vallen = strlen(rpmvals[i]);
valp = rpmvals[i];
+ vallen = strlen(rpmvals[i]);
stringvalued = 1;
/*@switchbreak@*/ break;
}
@@ -2979,7 +2980,7 @@ int rpmdbAdd(rpmdb db, int iid, Header h)
ssize_t pktlen;
if (b64decode(rpmvals[i], (void **)&pkt, &pktlen))
- continue;
+ /*@innercontinue@*/ continue;
(void) pgpPrtPkts(pkt, pktlen, dig, 0);
memcpy(bin, dig->pubkey.signid, 8);
pkt = _free(pkt);