diff options
author | jbj <devnull@localhost> | 2001-10-23 16:48:20 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-23 16:48:20 +0000 |
commit | 3b820b2d5354fffc824218ee3750a1a9435f0a8e (patch) | |
tree | 0e5a9983c429c2369b4069a2f6a09f0b7fccd165 /python | |
parent | 01baa77546d1efce05edecfabef82c5610ed559e (diff) | |
download | rpm-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.c | 7 |
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); } |