diff options
author | jbj <devnull@localhost> | 2002-07-24 16:21:23 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-07-24 16:21:23 +0000 |
commit | ede1f445e09895daee8bce8a2ddc9200839ee5de (patch) | |
tree | 66738dfcfd86d2c355b5f2ead53fb556999c2e71 /lib/rpmlib.h | |
parent | 6540da425629bf45020047214b81e156c62c7d7b (diff) | |
download | rpm-ede1f445e09895daee8bce8a2ddc9200839ee5de.tar.gz rpm-ede1f445e09895daee8bce8a2ddc9200839ee5de.tar.bz2 rpm-ede1f445e09895daee8bce8a2ddc9200839ee5de.zip |
- verify signatures/digests retrieved through rpmdbNextIterator().
- imbue %ghost with missingok attribute with --verify (#68933).
CVS patchset: 5568
CVS date: 2002/07/24 16:21:23
Diffstat (limited to 'lib/rpmlib.h')
-rw-r--r-- | lib/rpmlib.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/rpmlib.h b/lib/rpmlib.h index 6d88c5698..788fc3a21 100644 --- a/lib/rpmlib.h +++ b/lib/rpmlib.h @@ -137,6 +137,24 @@ void headerMergeLegacySigs(Header h, const Header sig) Header headerRegenSigHeader(const Header h) /*@modifies h @*/; +/** + * Check header consistency, performing headerGetEntry() the hard way. + * + * Sanity checks on the header are performed while looking for a + * header-only digest or signature to verify the blob. If found, + * the digest or signature is verified. + * + * @param ts transaction set + * @param uh unloaded header blob + * @param uc no. of bytes in blob (or 0 to disable) + * @retval *msg signature verification msg + * @return RPMRC_OK/RPMRC_NOTFOUND/RPMRC_FAIL + */ +rpmRC headerCheck(rpmts ts, const void * uh, size_t uc, const char ** msg) + /*@globals rpmGlobalMacroContext, fileSystem, internalState @*/ + /*@modifies ts, *msg, rpmGlobalMacroContext, + fileSystem, internalState @*/; + /** \ingroup header * Retrieve file names from header. * The representation of file names in package headers changed in rpm-4.0. @@ -831,7 +849,8 @@ typedef /*@abstract@*/ struct fsm_s * FSM_t; typedef /*@abstract@*/ struct psm_s * PSM_t; /** - * Return package header from file handle. + * Return package header from file handle, verifying digests/signatures as + * available. * @param ts transaction set * @param fd file handle * @param fn file name |