summaryrefslogtreecommitdiff
path: root/sign
AgeCommit message (Collapse)AuthorFilesLines
2012-11-05Update library current + age (ie libs are now 3.1.0)Panu Matilainen1-1/+1
- We haven't removed or changed any interfaces in a way that would require full soname bump, only a handful of new interfaces have been added. - There aren't actually any new interfaces in librpmbuild or librpmsign but for sanity and consistency's sake they're all updated...
2012-03-20Bump library sonames in preparation for new releasePanu Matilainen1-1/+1
- This is stupid... only librpm and librpmio actually need the bump due to ABI breakage, librpmbuild and librpmsign are unchanged and could use just a revision bump. But just incrementing the revision (or age) would set us on collision course with maintenance updates to 4.9.x. Then again its not like you can actually use librpmbuild or librpmsign without also linking to librpm(io) so from everything needs rebuilding anyway. This all also pretty much makes the whole libtool library versioning a bit moot. Bah.
2011-11-09Eliminate uses of pgpDig in package signing routinesPanu Matilainen1-22/+9
- No functional changes, just eliminates pile of unnecessary allocations and other calls, simplifying the code a bit.
2011-11-07Use pgpDigParamsAlgo() throughout the codebasePanu Matilainen1-7/+9
- Tedious but straightforward conversion to use the API instead of going to the struct directly. - Remove digest.h includes where no longer necessary
2011-11-07Add an API for comparing two digest parameter containersPanu Matilainen1-23/+3
- Lift the digest parameter comparison from librpmsign to rpmpgp.c where it really belongs.
2011-11-07Eliminate direct pgpDig accesses from signing codePanu Matilainen1-14/+21
2011-10-23Log an error on signing if we can't even parse the gpg-generated signaturePanu Matilainen1-1/+3
- The error message is not very helpful but if pgpPrtPkts() fails we dont have a whole lot clue in the caller why it failed, spitting out at least *some* error is better than silently failing (RhBug:748116, RhBug:719154)
2011-07-07Further streamline & sanitize lead handlingPanu Matilainen1-10/+4
- Never log anything from rpmLeadRead(), instead return an error message the callers can log if they see fit - Add a return value for the lead type (which is the only bit of info from the lead we sometimes resort to using) - Permit NULL pointers on all return values - Eliminate rpmLeadCheck() and rpmLeadType() from the internal API, these are now combined into rpmLeadRead(). - Fix up the callers: only (re)signing needs the actual lead, signature verification only cares if its valid or not and package reading only wants the type from the lead (annoying but...)
2011-07-06Make rpmLeadRead() return an allocated lead, fixup callersPanu Matilainen1-6/+3
- Requiring callers to allocate a lead "buffer" for reading into is just DUMB (greetings to self back in 2008, sigh). This avoids having to deal with freeing the lead in case the read failed, and allows getting rid of rpmLeadNew() completely.
2011-05-29Eliminate dead NULL-assignments at scope-end in librpmsignPanu Matilainen1-8/+8
2011-05-25Issue an error on failure to replace original package on signingPanu Matilainen1-1/+5
- Previously any failure on replacing the original package with the newly signed one would silently fail, causing rather confusing behavior when eg attempting to (re)sign readable but not writable packages.
2011-04-21Handle errors from moving target file into place in rpmSign()Panu Matilainen1-18/+7
- Signing isn't successful unless we manage to replace the original file with the signed one, take the stat() etc returns into count.
2011-04-21headerPut() and headerDel() returns aren't interesting herePanu Matilainen1-3/+3
2011-04-21Remove redundant indentation block from rpmSign()Panu Matilainen1-128/+125
- No code changes, just formatting sanity/prettiness
2011-01-31Mark the identical signature warning as translatablePanu Matilainen1-2/+2
2010-10-22Eek.. librpmsign sources went missing in the movePanu Matilainen2-0/+683
- Re-adding the files that should've gotten moved (not removed) in commit 9f2c1bd9096cbf382c864737a6565e5487767ce2 - Mild wtf ... probably user (not git) error though. Too bad the broken state got pushed already :-/
2010-10-22Move librpmsign to its own subdirectory in the sourcesPanu Matilainen1-0/+19