summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-23 16:48:20 +0000
committerjbj <devnull@localhost>2001-10-23 16:48:20 +0000
commit3b820b2d5354fffc824218ee3750a1a9435f0a8e (patch)
tree0e5a9983c429c2369b4069a2f6a09f0b7fccd165 /python
parent01baa77546d1efce05edecfabef82c5610ed559e (diff)
downloadrpm-3b820b2d5354fffc824218ee3750a1a9435f0a8e.tar.gz
rpm-3b820b2d5354fffc824218ee3750a1a9435f0a8e.tar.bz2
rpm-3b820b2d5354fffc824218ee3750a1a9435f0a8e.zip
- generate an rpm header on the fly for imported pubkeys.
CVS patchset: 5130 CVS date: 2001/10/23 16:48:20
Diffstat (limited to 'python')
-rw-r--r--python/rpmmodule.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index d1bd4a5f2..67b69e3b4 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -2289,9 +2289,14 @@ static PyObject * checkSig (PyObject * self, PyObject * args) {
if (PyArg_ParseTuple(args, "si", &filename, &flags)) {
const char *av[2];
+ struct rpmSignArguments_s ka;
av[0] = filename;
av[1] = NULL;
- rc = rpmCheckSig(flags, av);
+ ka.addSign = RPMSIGN_CHK_SIGNATURE;
+ ka.checksigFlags = flags;
+ ka.sign = 0;
+ ka.passPhrase = NULL;
+ rc = rpmCheckSig(&ka, av);
}
return Py_BuildValue("i", rc);
}