Further streamline & sanitize lead handling
authorPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Thu, 7 Jul 2011 08:55:28 +0000 (11:55 +0300)
committerPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Thu, 7 Jul 2011 08:55:28 +0000 (11:55 +0300)
commit78c95448a16f0c766e1fdd34db861b8150335484
tree27e7e5ab638b154839f89a4fe15fd1e862ce3fff
parente156eac1c8d1703d311277d177ddc0ebba9b187a
Further streamline & sanitize lead handling

- 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...)
lib/package.c
lib/rpmchecksig.c
lib/rpmlead.c
lib/rpmlead.h
sign/rpmgensig.c