Commit Graph

9265 Commits

Author SHA1 Message Date
Panu Matilainen 4c39a9df93 Pad RSA signatures up to modulus size if necessary (rhbz#494049)
- unfortunately can't be detected at initial allocation so extra
  copy is needed at verification time
2009-04-16 11:03:29 +03:00
Panu Matilainen fb19a98fa0 Check for termination signals during signing / signature checking loop 2009-04-16 11:02:17 +03:00
Florian Festi 1880778844 Revert erase relations before checking whether we already added it 2009-04-14 10:57:46 +02:00
Panu Matilainen 0f967d157d Error out at build on unsupported payload compressors (rhbz#495429)
- only permit bzip2/lzma/xz payload compression if rpm built with the
  necessary libraries
2009-04-13 13:58:39 +03:00
Jindrich Novy 07524b67b6 Don't require %ghost file presence in build root (rhbz#495040) 2009-04-10 11:27:49 +02:00
Jindrich Novy 2566a70b0a Remove file flags that have never been enabled 2009-04-09 14:48:02 +02:00
Ville Skyttä 0f29cc7f27 Make it clearer that PACKAGE_FILE logic applies to all -F, -U, and -i. 2009-04-09 14:11:39 +03:00
Ville Skyttä 48580a70bc Remove obsolete info about --buildarch and --buildos. 2009-04-09 14:10:16 +03:00
Panu Matilainen 88e63e6460 Updated Spanish translation (Oscar Bacho) 2009-04-09 14:06:14 +03:00
Panu Matilainen a45e6f0319 Updated Serbian translations (Milos Komarcevic) 2009-04-09 14:04:46 +03:00
Panu Matilainen 01d5f66831 Updated Catalan translation (Xavier Conde) 2009-04-09 13:54:09 +03:00
Panu Matilainen 7a8aecbc86 Fix PGP v4 fingerprint calculation (rhbz#493777)
- patch from openSUSE / Michael Schroeder
2009-04-09 13:05:00 +03:00
Jindrich Novy 37a35d0721 Don't allow '~', '/' characters and ".." sequence in NVR (rhbz#493157) 2009-04-06 10:20:47 +02:00
Panu Matilainen 26ac9b3d94 Make rpmal header & all internal
- rpmal is hardly useful outside rpm itself, avoid exporting stuff
  unnecessarily
2009-04-03 13:07:42 +03:00
Panu Matilainen c40f6d5dca Make sure installed files have state (rhbz#492947)
- rpmfsSetState() doesn't get called for skipped files like %ghost and
  %config(noreplace), causing incorrect file state ("no state") getting
  recorded in rpmdb, leading to inapproriate removal/rename on erase, ick
- For TR_ADDED, always default file states to RPMFILE_STATE_NORMAL, fsm
  changes it as necessary for skipped colors and such. Lazy alloc on
  rpmfsSetState() is not correct as rpmfsSetState() might not get called
  at all.
- originally broken by commit 8d6c4b8c95
2009-04-03 10:34:26 +03:00
Jindrich Novy 4c23ebdb81 Use -mtune instead of -mcpu (rhbz#493696) 2009-04-02 20:49:48 +02:00
Panu Matilainen 0b8ce16f25 Polish translation update (Piotr Drąg) 2009-04-01 12:17:45 +03:00
Panu Matilainen 7919fdb480 Update translations for a change... 2009-03-31 13:14:53 +03:00
Panu Matilainen e38cbe5b4e Prefer more specific types over generic "text" in classification (rhbz#491349) 2009-03-31 13:14:08 +03:00
Panu Matilainen 193e1c21e1 Allocate ts->addedPackages lazily from rpmtsAddInstallElement()
- at least verification calls rpmtsClean() which wipes out ts->addedPackages,
  make sure it's always alloced when needed
2009-03-31 13:00:59 +03:00
Florian Festi 312b4fcd30 Erase relations are reversed, use requires of target 2009-03-30 21:57:13 +02:00
Panu Matilainen 569adfa17c Tidy up rpmfi struct definition a bit 2009-03-27 16:15:00 +02:00
Panu Matilainen 74a4f639e2 Lose unused/useless Type and tagN fields from rpmfi struct 2009-03-27 16:12:25 +02:00
Panu Matilainen 3d63df6220 Handle XZ in %uncompress macro
- should've been in commit 8078d0ba24
2009-03-27 14:11:43 +02:00
Panu Matilainen a392276083 Rip the macro default settings in rpmrc setDefaults()
- these get nuked and not reloaded on package builds
- rpm(build) needs a properly set up macros file in any case
2009-03-27 14:08:56 +02:00
Panu Matilainen 2d2bda29c1 Add built-in %getconfdir macro for getting rpmConfigDir() value
- define %_rpmconfigdir via %getconfdir in the main macro config, this
  avoids it getting lost on macro reloads as happens when building
  several packages at once
2009-03-27 14:01:47 +02:00
Panu Matilainen a5eeff6d42 Plug minor memleak from default rc and macro file paths
- build code can call these several times, only init once
2009-03-27 13:45:08 +02:00
Panu Matilainen b2e85dae83 Plug minor memleak from rpmGetCwd() on build 2009-03-27 13:44:46 +02:00
Panu Matilainen a17b3b68f2 Eliminate pointless xstrdup()'s, the strings are never modified 2009-03-26 15:31:10 +02:00
Florian Festi 144830cf81 Fix: use the file's color to decide whether to add it to the rpmal not the color of the rpmfi 2009-03-26 13:53:26 +01:00
Florian Festi 1ce328aa29 Remove rpmal from the Python API
as it changed and never was usable anyway
2009-03-26 12:20:34 +01:00
Florian Festi 3a6f3133a1 Reimplement rpmal by using hashes and cleaning up the color handling 2009-03-26 12:20:26 +01:00
Florian Festi 3e37044eb9 Make rpmal store rpmtes and kill rpmte->pkgKey 2009-03-26 12:15:27 +01:00
Florian Festi 85a84fdae7 Also order erases.
- partially using code from rpm5.org
2009-03-26 12:15:27 +01:00
Florian Festi a1910f89e4 Implement rpmteSetDependsOn and rpmteDependsOn using a rpmte 2009-03-26 12:15:27 +01:00
Panu Matilainen 64280efc1e Put the PGP foobar signature generation out of its misery
- the last freeware PGP version (6.5.8) is from year 2000 and doesn't
  come close to compiling on modern distros, commercial versions we're
  not interested in
- "PGP" signatures in rpm mean RSA, gpg can handle that just fine since
  forever
- the code's been unused for years, unlikely to be functional anyway...
2009-03-26 09:59:01 +02:00
Jindrich Novy 4d31b0433f process the "./" in file paths correctly (rhbz#491388) 2009-03-25 17:28:55 +01:00
Panu Matilainen 5f445d7e8f Make sure fd bundle is always NULLed on rpmVerifySignatures() exit
- readFile() failure could crash on double-free otherwise
2009-03-25 17:00:41 +02:00
Panu Matilainen 678dceb245 Unify DSA/RSA/GPG/blaa signature verification, simplify
- verifyRSA/DSA were just the same already, differences are in key/sig
  parameters which dont matter on this level
- these dont need sigtd for anything, the data has been parsed into pgpDig
  before we get here
- add extra flag for header-only vs header+payload signatures,
  we know which is it in rpmVerifySignature()
2009-03-25 16:48:24 +02:00
Panu Matilainen 0ce87a7494 Rename internal signature verification functions
- size, md5 and sha1 aren't really signatures
2009-03-25 16:35:41 +02:00
Panu Matilainen 87b8402eaa Reorder internal signature verification arguments
- move retval msg last everywhere
2009-03-25 16:33:29 +02:00
Panu Matilainen bdd73e4180 Push signature identification to librpmio / pgp handling
- retrieve names from pgp tables instead of manually duplicated strings
2009-03-25 16:30:20 +02:00
Panu Matilainen b711341a61 Remove redundant RSA/DSA parameter checks
- if this stuff doesn't match, pgpVerifySig() will fail anyway, dont
  bother checking for same things over and over
2009-03-25 15:42:30 +02:00
Panu Matilainen d65c178785 Push signature verification down to librpmio
- 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 15:16:59 +02:00
Panu Matilainen 19e142ee4e These cases are identical now... 2009-03-25 14:39:29 +02:00
Panu Matilainen 127eddaa70 Rename arguments, RSA keys are certainly not limited to md5 hashes 2009-03-25 14:37:43 +02:00
Panu Matilainen eb48cfaf6b Use makeGPGSignature() for both DSA and RSA
- in reality makePGPSignature() never gets called here due to other fun...
2009-03-25 14:17:34 +02:00
Panu Matilainen e3892e2c8d Remove unnecessary {} block inflating indentation, streamline 2009-03-25 14:09:42 +02:00
Panu Matilainen a7051403f8 Eliminate copy-paste digest calculation in rpmReadPackageFile()
- for DSA and RSA we want to grab the hash algo from signature, other
  than that it's just the same for all header-only DSA/RSA/SHA1 sigs
2009-03-25 13:51:47 +02:00
Panu Matilainen 96e9d490a6 Eliminate copy-paste digest calculation in headerCheck()
- for DSA and RSA we want to grab the hash algo from signature, other
  than that it's just the same for all DSA/RSA/SHA1 sigs
2009-03-25 13:48:37 +02:00