Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-06-01 | Permit DOS line-endings in PGP armors (RhBug:532992) | Panu Matilainen | 1 | -4/+7 | |
- RFC-4880 doesn't requires unix-style line-endings, we shouldn't either. This is probably still oversly strict as RFC-4880 appears to permit any whitespace to follow armor headers but ... shrug. | |||||
2010-05-19 | Add public pgpValString() function + enum for the various types | Panu Matilainen | 1 | -8/+26 | |
- The equivalent used to be possible in 4.4.x era as the value tables were all exported, but this way we need to export far less and the implementation details stay internal. | |||||
2010-05-19 | Bury struct pgpValTbl_s definition inside rpmpgp.c | Panu Matilainen | 1 | -0/+5 | |
- as all the value tables are static inside rpmpgp.c, exposing this is pointless (should've been unexported long time ago) | |||||
2009-11-25 | We can't handle OpenPGP subkeys or secret keys, so dont even try | Panu Matilainen | 1 | -5/+3 | |
- parsing subkeys ends up overwriting data in the main key, causing bogus signature checking failures - this is the final missing piece of RhBug:436812, short of adding proper support for subkeys (maybe someday...) | |||||
2009-10-09 | Add an interface to parse armored OpenPGP from memory | Panu Matilainen | 1 | -19/+28 | |
- refactor the decoding part out of pgpReadPkts() to separate helper, and add pgpParsePkts() around that | |||||
2009-08-31 | Ugh, fix brokenness from previous commit | Panu Matilainen | 1 | -1/+1 | |
2009-08-31 | Replace equal/not equal uses of str[n]cmp() with rstreq[n] in io code | Panu Matilainen | 1 | -4/+3 | |
2009-05-08 | Fix parsing of pubkey signature packets. Ick. | Panu Matilainen | 1 | -3/+3 | |
- busted all the way from commit bcb226480d0b60a8667eade77d81c29de4c3d6c9 | |||||
2009-04-23 | Hide NSS peculiarities from API | Panu Matilainen | 1 | -0/+27 | |
- PKCS#11 standard requires modules to be re-initialized after fork(), arrange this to occur automatically. - Most of the time child processes will exec() something else so dont bother shutting down NSS for every child, only lazily re-initialize as needed. - This lets us initialize NSS early to force preloading of its dlopen()'ed libraries to avoid issues on chroot(), without causing problems to API users which fork() after initializing rpm (such as func, urpmi etc). | |||||
2009-04-16 | Pad RSA signatures up to modulus size if necessary (rhbz#494049) | Panu Matilainen | 1 | -1/+20 | |
- unfortunately can't be detected at initial allocation so extra copy is needed at verification time | |||||
2009-04-09 | Fix PGP v4 fingerprint calculation (rhbz#493777) | Panu Matilainen | 1 | -1/+7 | |
- patch from openSUSE / Michael Schroeder | |||||
2009-03-25 | Push signature identification to librpmio / pgp handling | Panu Matilainen | 1 | -0/+19 | |
- retrieve names from pgp tables instead of manually duplicated strings | |||||
2009-03-25 | Push signature verification down to librpmio | Panu Matilainen | 1 | -0/+76 | |
- 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 | |||||
2009-03-25 | Eliminate header/payload digests from pgpDig_s, they dont belong | Panu Matilainen | 1 | -17/+0 | |
- allocate+free digests locally where needed, pass around in separate argument - use digest bundles to handle rpmVerifySignatures() needs - kill-kill-kill fdStealDigest(), dup the contexts from bundles as needed | |||||
2009-03-16 | Eliminate unnecessary pgpNewPublicKey() wrappers | Panu Matilainen | 1 | -12/+2 | |
2009-03-16 | Eliminate unnecessary field from pgpDig_s | Panu Matilainen | 1 | -35/+24 | |
- key/signature can't be both DSA and RSA at the same time | |||||
2009-03-04 | Dont leak memory from hdrmd5ctx | Panu Matilainen | 1 | -2/+0 | |
2009-03-04 | Eliminate unnecessary fields from pgpDig_s | Panu Matilainen | 1 | -3/+0 | |
- sha1(len) and md5(len) are only needed and used locally in verify[DR]SASignature(), no point carrying them around in pgpDig - use wrapper function to hide type differences between rpm and NSS | |||||
2009-01-08 | Only touch _crypto_initialized if we actually change it | Panu Matilainen | 1 | -5/+6 | |
2009-01-08 | Don't segfault in pgpPubkeyFingerprint() if rpmDigest* fails | Panu Matilainen | 1 | -3/+5 | |
- this can happen if NSS is not properly initialized, such as after forking - partial fix to rhbz#476737 (as in "doesn't crash"), deeper issue is that NSS init needs to be done later than we do now | |||||
2008-07-01 | Create ascii armor that rpm itself accepts | Panu Matilainen | 1 | -1/+1 | |
2008-07-01 | Eliminate the nasty global _dig and _digp variables from rpmpgp | Panu Matilainen | 1 | -24/+26 | |
- pass the digest + parameters around as arguments instead | |||||
2008-07-01 | Unexport all the umphteen pgp related tables | Panu Matilainen | 1 | -10/+10 | |
- nothing outside rpmpgp.c needs | |||||
2008-07-01 | Make every pgp function not needed by other parts of rpm static | Panu Matilainen | 1 | -7/+158 | |
2008-06-10 | Silly signedness mismatch in pgpMpiSet() | Panu Matilainen | 1 | -1/+1 | |
2008-04-15 | Plug a memleak in pgpArmorWrap() | Panu Matilainen | 1 | -0/+1 | |
2008-04-08 | Rewrite pgpArmorWrap(), the former one was insecure/hackish | Jindrich Novy | 1 | -30/+12 | |
2008-04-07 | Uh, return allocated pointer, not the end of string... | Panu Matilainen | 1 | -2/+3 | |
2008-04-07 | Remove static print buffer from pgpMpiStr(), return malloc'd data instead | Panu Matilainen | 1 | -3/+12 | |
- convert callers - only rpmpgp.c internal needs, move it there and make static? | |||||
2008-04-07 | Merge pgpHexCvt() into pgpHexPrt(), removing it from public headers | Panu Matilainen | 1 | -1/+8 | |
2008-04-07 | Remove static print buffer from pgpHexStr, return malloc'ed memory instead | Panu Matilainen | 1 | -1/+11 | |
- inlined to get xmalloc() from system.h for consistent malloc fail behavior - convert callers for new behavior, apart from some debug fprintf()'s | |||||
2008-03-24 | Remove bogus consts from pgpDigParams_s structure | Panu Matilainen | 1 | -6/+6 | |
2008-03-19 | Remove bunch of double consts. What have I've been thinking? | Panu Matilainen | 1 | -10/+10 | |
2008-03-06 | Further read-only tables in rpmpgp.. | Panu Matilainen | 1 | -8/+8 | |
2008-03-06 | Mark various pgp value tables read-only as they should be | Panu Matilainen | 1 | -10/+10 | |
2008-01-30 | Include spring-cleaning | Panu Matilainen | 1 | -2/+3 | |
- put some consistency into include ordering - everything (apart from bits missed ;) is now ordered like this 1. "system.h" 2. other system includes 3. rpm public headers 4. rpm private headers 5. "debug.h" | |||||
2008-01-09 | Last 8 bytes of RSA modulus is keyid for V3 pubkeys (#205080) | Panu Matilainen | 1 | -22/+34 | |
- ported from rpm5.org work of Jeff Johnson - minimal fix suitable for 4.4.2.x too, full rpm5.org changes require api changes which would be ok for HEAD but that's a bigger task... | |||||
2008-01-03 | Lose unused pgpMpiHex() | Panu Matilainen | 1 | -11/+0 | |
2007-12-19 | Hum, NSS needs to be shut down too | Panu Matilainen | 1 | -0/+12 | |
- some ~80 bytes are still leaked apparently from somewhere within nss/nspr | |||||
2007-12-17 | Use constfree for cleaning up pgp digest contents | Panu Matilainen | 1 | -6/+6 | |
- the contents are exposed within rpm (although not public interfaces) but pgpCleanDig() should be used to free the struct - pgpDig and pgpDigParams need encapsulation + api... | |||||
2007-12-16 | pgpReadPkts returns malloced memory, unconstify | Panu Matilainen | 1 | -1/+1 | |
2007-12-14 | Remove bogus consts.. | Panu Matilainen | 1 | -2/+2 | |
2007-12-14 | More misc size_t issues | Panu Matilainen | 1 | -1/+1 | |
2007-12-14 | Couple of more size_t uses + related format string fixes | Panu Matilainen | 1 | -4/+4 | |
2007-12-13 | Big bunch of int -> size_t corrections for various signature items | Panu Matilainen | 1 | -28/+27 | |
2007-12-08 | Switch to <rpm/foo.h> style for public headers | Panu Matilainen | 1 | -1/+1 | |
- adjust include paths accordingly | |||||
2007-11-26 | Define and use pgpKeyID_t for pgp key id's | Panu Matilainen | 1 | -5/+5 | |
2007-11-26 | Eliminate type "byte" | Ralf Corsépius | 1 | -40/+40 | |
2007-11-23 | Expand private include file names to be relative to $(top_srcdir) | Ralf Corsépius | 1 | -2/+2 | |
2007-11-23 | Move the xstr*() string variants from rpmio.h to rpmstring.h | Panu Matilainen | 1 | -0/+3 | |