Commit Graph

165 Commits

Author SHA1 Message Date
Panu Matilainen b497a4f05f Only do legacy retrofitting on packages that need it.
Packages not having RPMTAG_DIRNAMES (ie compressed filenames) is
used for checking, packages not having it are either built with rpm <= 3.x
or with --nodirtokens, retrofitting in the latter case doesn't really
hurt that much for the obscure case...
2007-11-07 13:12:20 +02:00
Panu Matilainen 8f97ae9d26 Document rpmio_internal.h uses outside rpmio/ 2007-11-07 11:57:12 +02:00
Panu Matilainen 8239d0b74b Remove bunch of unnecessary misc.h includes, document others 2007-11-07 10:17:10 +02:00
Panu Matilainen 8afe81c214 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Ralf Corsépius f25c04c1e4 Include "rpmlib.h" instead of <rpmlib.h>. 2007-10-28 06:47:31 +01:00
Ralf Corsépius 9735f83012 Include "rpmio_internal.h" instead of <rpmio_internal.h>. 2007-10-28 06:43:19 +01:00
Ralf Corsépius bebeb89735 Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead. 2007-10-26 13:24:14 +02:00
Panu Matilainen 01d5c13a42 Make rpmerr.h private, include directly where needed. 2007-10-09 15:33:49 +03:00
Panu Matilainen 0eb7deabf2 Replace all uses of RPMMESS_WARNING with RPMLOG_WARNING 2007-10-09 14:52:01 +03:00
Panu Matilainen c52905d334 Replace all uses of RPMMESS_ERROR with RPMLOG_ERR 2007-10-09 14:49:02 +03:00
Panu Matilainen 9d9aa852ca Replace all uses of RPMMESS_DEBUG with RPMLOG_DEBUG 2007-10-09 14:48:04 +03:00
Panu Matilainen 4ce9fc1a17 Replace all rpmMessage() uses with rpmlog() 2007-10-09 14:14:30 +03:00
Panu Matilainen d709195c3a Replace all rpmError() uses with rpmlog() 2007-10-09 14:06:06 +03:00
Ralf Corsépius ebef4f211c Remove splint tags. 2007-09-11 19:07:39 +02:00
Panu Matilainen 2e8356bda9 ...and more pointer signedness fixes... 2007-07-11 13:10:47 +03:00
Panu Matilainen a7458d9dd7 Msg buffer signedness change to avoid several compiler warnings. 2007-07-10 11:39:11 +03:00
Panu Matilainen a867e6786e Permit packages with no payload format (rpm 3.x compat), ugh... 2007-07-09 11:23:58 +03:00
Panu Matilainen 866771356c Rename headerCheckPayload() -> headerCheckPayloadFormat()
to remove any potential confusion as to what it really does.
2007-06-19 16:12:04 +03:00
Panu Matilainen c8dbe9d10b Skip packages/headers with non-verifiable signatures and treat
them as errors (rhbz#239557)
2007-06-12 11:22:49 +03:00
Panu Matilainen 592a1e5998 Payload compatibility checking fixes.
Only check for payload compatibility when dealing with packages (and not
eg build headers). Don't crash if no payload format defined in header.
2007-06-05 12:43:53 +03:00
Panu Matilainen c3ce7e90a5 Check for supported payload format on package install. (rhbz#140052)
Add a new API function to check for supported payload format from header, have
rpmtsAddInstallElement() check and fail if not. Check for tsadd failure
on src.rpm install as well.
2007-05-24 10:56:53 +03:00
jbj 42981d3ccd Add support for RSA on sha1/sha256/sha384/sha512.
CVS patchset: 7804
CVS date: 2005/03/13 01:39:19
2005-03-13 01:39:19 +00:00
jbj 63864b6a28 Add hdrmd5ctx for header-only md5 rsa/md5 signatures.
CVS patchset: 7800
CVS date: 2005/03/12 15:16:42
2005-03-12 15:16:42 +00:00
jbj 0935020492 - fix: length of gpg V4 hash seed was incorrect (#146896).
- add support for V4 rfc-2440 signatures.

CVS patchset: 7737
CVS date: 2005/02/02 18:47:42
2005-02-02 18:47:42 +00:00
jbj e93a77c9b7 Add generalized iterator to rpmlib.
CVS patchset: 7482
CVS date: 2004/10/18 01:08:56
2004-10-18 01:08:56 +00:00
jbj d57bc03f65 - disable expensive header+payload verifies in default config.
- adjust digest/signature stats to count #pkgs and bytes.

CVS patchset: 7465
CVS date: 2004/10/15 00:14:29
2004-10-15 00:14:29 +00:00
jbj 24bb3c7ce2 Flush changes from rpm-4_3 branch.
CVS patchset: 7440
CVS date: 2004/10/09 19:40:09
2004-10-09 19:40:09 +00:00
jbj ce2ad5848a - avoid "can't happen" recursion while retrieving pubkeys.
CVS patchset: 7401
CVS date: 2004/08/19 17:00:15
2004-08-19 17:00:15 +00:00
jbj c243ab099b - resurrect manifests, RPMRC_NOTFOUND returned by readLead().
CVS patchset: 6752
CVS date: 2003/04/16 17:48:04
2003-04-16 17:48:04 +00:00
jbj 783219a832 fix: prevent segfault if malicious server sends 1 GB of data through ftpNLST.
fix: rpmal could segfault under obscure conditions.
Use array, not individual structures, for rpmsw{Enter,Exit} timestamps.

CVS patchset: 6735
CVS date: 2003/04/08 21:42:55
2003-04-08 21:42:55 +00:00
jbj f60ec855de Calibrated stopwatch using rdtsc.
Probes for digest/signature and rpmdb.

CVS patchset: 6734
CVS date: 2003/04/07 12:05:35
2003-04-07 12:05:35 +00:00
jbj 51e7f7a5e9 - fix: memory leak (85522).
CVS patchset: 6656
CVS date: 2003/03/06 22:50:04
2003-03-06 22:50:04 +00:00
jbj 3b6005fbd9 oops, get rid of debugging printf's.
destroy nptl functional test mutex/cond iff successful.
initialize getcwd buffer to zero to keep valgrind happy.

CVS patchset: 6035
CVS date: 2003/02/03 11:46:52
2003-02-03 11:46:52 +00:00
jbj 7e716b70fb splint fiddles.
CVS patchset: 6023
CVS date: 2003/01/23 20:23:24
2003-01-23 20:23:24 +00:00
jbj b3bc3cb19d - add --file{class,provide,require} popt aliases and header extensions
CVS patchset: 5947
CVS date: 2002/12/18 22:54:00
2002-12-18 22:54:00 +00:00
jbj d0ccee051f - fix: use size_t consistently, avoid segfault on ia64.
CVS patchset: 5760
CVS date: 2002/10/09 19:07:43
2002-10-09 19:07:43 +00:00
jbj 0ef682d77e - lclint clean.
CVS patchset: 5715
CVS date: 2002/09/17 15:21:03
2002-09-17 15:21:03 +00:00
jbj 40726dd94f Sync with rpm-4.1 parsing changes.
CVS patchset: 5711
CVS date: 2002/09/16 20:10:20
2002-09-16 20:10:20 +00:00
jbj 0c09564b83 - fix: parse header data more carefully.
CVS patchset: 5701
CVS date: 2002/09/04 01:52:26
2002-09-04 01:52:26 +00:00
jbj cc5d229b0e Sync with rpm-4.1.
CVS patchset: 5695
CVS date: 2002/08/31 22:39:34
2002-08-31 22:39:34 +00:00
jbj 02f9006732 - fix: segfault with --checksig, plug memory leak (#72455).
- rpm-4.1 release candidate.

CVS patchset: 5684
CVS date: 2002/08/27 20:50:21
2002-08-27 20:50:21 +00:00
jbj 4914b09624 - python: don't remap NOKEY/UNTRUSTED to OK.
CVS patchset: 5671
CVS date: 2002/08/26 17:42:39
2002-08-26 17:42:39 +00:00
jbj f5a546f580 - merge signature returns into rpmRC.
- python: exceptions on NOKEY/NOTTRUSTED.

CVS patchset: 5667
CVS date: 2002/08/23 21:01:59
2002-08-23 21:01:59 +00:00
jbj 9e06e3b8ca - fix: region trailer offset sanity check wrong (#71996).
CVS patchset: 5654
CVS date: 2002/08/22 00:37:21
2002-08-22 00:37:21 +00:00
jbj 035cf961d5 - add bitmask for precise control of signature/digest verification.
CVS patchset: 5604
CVS date: 2002/08/06 01:41:44
2002-08-06 01:41:44 +00:00
jbj bd5ee7affa - fix: check for lead magic, better error message on failure (#69751).
CVS patchset: 5602
CVS date: 2002/08/05 19:45:52
2002-08-05 19:45:52 +00:00
jbj 5a1ebaccd5 - python: don't segfault in ts.GetKeys() on erased packages.
resurrect build modes.
add undocumented debugging options.

CVS patchset: 5577
CVS date: 2002/07/28 14:52:33
2002-07-28 14:52:33 +00:00
jbj 670ab1c845 - popt: display sub-table options only once on --usage.
- wire --nosignatures et al as common options, rework CLI options.

CVS patchset: 5575
CVS date: 2002/07/28 00:41:15
2002-07-28 00:41:15 +00:00
jbj c33342be5f - fix: --repackage repaired (#67217).
- fix: rpm2cpio disables signature checks (i.e. same behavior).

CVS patchset: 5574
CVS date: 2002/07/25 23:36:32
2002-07-25 23:36:32 +00:00
jbj 81fef98480 - python: add ts.hdrCheck(), ts.rebuildDB() methods.
- python: iterating on an ts object returns transaction elements now.
- add yellowdog as vendor.

CVS patchset: 5570
CVS date: 2002/07/25 00:13:25
2002-07-25 00:13:25 +00:00