diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-25 15:16:59 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-03-25 15:16:59 +0200 |
commit | d65c1787857b270ca258382581644f5cc50c3bad (patch) | |
tree | d98fcf3389dab1a3f1a4b7781895ee4c97c2c585 /rpmio/rpmpgp.h | |
parent | 19e142ee4e54ad7967f3a6dab9552450b0357e88 (diff) | |
download | librpm-tizen-d65c1787857b270ca258382581644f5cc50c3bad.tar.gz librpm-tizen-d65c1787857b270ca258382581644f5cc50c3bad.tar.bz2 librpm-tizen-d65c1787857b270ca258382581644f5cc50c3bad.zip |
Push signature verification down to librpmio
- new pgpVerifySig() call to perform the lowlevel verify, use for
verifying DSA/RSA signatures
- librpm is now free of NSS specifics (apart from what still leaks through
including rpmio/digest.h), remove linkage
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r-- | rpmio/rpmpgp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h index c3d6097b4..0789b45df 100644 --- a/rpmio/rpmpgp.h +++ b/rpmio/rpmpgp.h @@ -1041,6 +1041,14 @@ void pgpCleanDig(pgpDig dig); pgpDig pgpFreeDig(pgpDig dig); /** \ingroup rpmpgp + * Verify a PGP signature. + * @param dig container + * @param hashctx digest context + * @return RPMRC_OK on success + */ +rpmRC pgpVerifySig(pgpDig dig, DIGEST_CTX hashctx); + +/** \ingroup rpmpgp * Perform cryptography initialization. * It must be called before any cryptography can be used within rpm. * It's not normally necessary to call it directly as it's called in |