summaryrefslogtreecommitdiff
path: root/sign/rpmgensig.c
AgeCommit message (Collapse)AuthorFilesLines
2023-11-16Upgrade version to 4.14tizen/4.14.1.1.tizen20230628wangbiao1-246/+510
Change-Id: I21bf1a3a7c25cbec43022202cf2e5865b603a309 Signed-off-by: wangbiao <biao716.wang@samsung.com>
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 Matilainen1-0/+645
- 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 :-/