Commit Graph

153 Commits

Author SHA1 Message Date
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
jbj c4f6f42f94 - fix: segfault if given a text file as 2nd arg to -Uvh (#69508).
CVS patchset: 5569
CVS date: 2002/07/24 18:52:22
2002-07-24 18:52:22 +00:00
jbj ede1f445e0 - 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
2002-07-24 16:21:23 +00:00
jbj 6af194ed8e - add methods to make signature handling opaque wrto rpmts.
CVS patchset: 5566
CVS date: 2002/07/21 22:06:19
2002-07-21 22:06:19 +00:00
jbj 293a81e259 - version added to *.la dependency libraries (#69063).
- expose digests in rpmio API, but hide internal beecrypt API (#68999).

CVS patchset: 5561
CVS date: 2002/07/20 21:07:31
2002-07-20 21:07:31 +00:00
jbj bfb8488c10 - popt: parse file into string of options (#56860).
CVS patchset: 5560
CVS date: 2002/07/20 19:02:40
2002-07-20 19:02:40 +00:00
jbj 261b4a2ecb - install rpmal.h and rpmhash.h, implicit rpmps.hinclude, for now.
- revert headerFree/headerLink/headerUnlink debugging.

CVS patchset: 5550
CVS date: 2002/07/13 19:08:51
2002-07-13 19:08:51 +00:00
jbj e5fb770e7d Add boundsread annotations throughout, enable +bounds checking.
Start narrowing the scope of bounds annotations by adding more annotations.

CVS patchset: 5537
CVS date: 2002/07/02 23:54:35
2002-07-02 23:54:35 +00:00
jbj 77076c7c8d add (disabled for now) dependency check to rpmgraph.
splint and gettext fiddles.

CVS patchset: 5536
CVS date: 2002/07/02 13:16:50
2002-07-02 13:16:50 +00:00
jbj 8c4991e9d5 - warn only once for each NOKEY/UNTRUSTED key id.
- factor common options into table, add rpmcliInit() and rpmcliFini().
- add preliminary rpmgraph(8) and rpmcache(8) executables to rpm-devel.

CVS patchset: 5535
CVS date: 2002/06/30 22:47:32
2002-06-30 22:47:32 +00:00
jbj 05cb73a7ee Factor bounds checking annotations into source code.
CVS patchset: 5521
CVS date: 2002/06/22 18:51:56
2002-06-22 18:51:56 +00:00
jbj 386882db7a - fix: synthesize unpacking progress callbacks for packages w/o files.
CVS patchset: 5440
CVS date: 2002/05/19 23:37:24
2002-05-19 23:37:24 +00:00
jbj 2126e4ad09 - Grand Renaming of rpm data types.
CVS patchset: 5439
CVS date: 2002/05/19 18:42:25
2002-05-19 18:42:25 +00:00