[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to program with librpm (test program crashes)
- From: David Eduardo Gómez Noguera <davidgn servidor unam mx>
- To: rpm-list redhat com
- Subject: Re: How to program with librpm (test program crashes)
- Date: Wed, 13 Aug 2003 16:33:36 -0500
On Wed, 2003-08-13 at 14:54, Star Morin wrote:
> i had some trouble w/ that my self, and there's more trouble down this
> road for you...( rpmVerifySignature needs a ts, a ts needs a dig, dig
> needs readFile, and readFile needs rpmio_internal.h?? something like
> that. that's your most likely discovery path, anywhoo... uhhgg.)
>
> try something along the lines of (mostly culled from lib/rpmchecksig.c):
...
> int rpmRSrc = rpmReadSignature(sfd, &sigh, l->signature_type, &msg);
> printf(" ok\n");
...
> try running doxygen over the source again for the api documentation?
> there seems to be some voodoo around signatures, and folks don't seem to
> like to talk about them much.
>
hehehe... some voodoo? dark magic?
are you talking about the fact that both the RedHat RPM Guide and RPM
API say its rpmReadSignature( FD_t fd, Header * header, sigType
sig_type) but the actual call in the file you mentioned adds a 4th
parameter (I checked it on the src.rpm, and its like it) ?
Thank you for your pointers.
It seems like mostly I will just write some wrapper around rpm's
commands whenever I need to do something the easy way with 'C'.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]