From 3b820b2d5354fffc824218ee3750a1a9435f0a8e Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 23 Oct 2001 16:48:20 +0000 Subject: - generate an rpm header on the fly for imported pubkeys. CVS patchset: 5130 CVS date: 2001/10/23 16:48:20 --- python/rpmmodule.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'python/rpmmodule.c') 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); } -- cgit v1.2.3