Sanitize pgpsigFormat()
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 24 Oct 2011 09:21:01 +0000 (12:21 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 24 Oct 2011 09:34:07 +0000 (12:34 +0300)
commit97a452f732a256e033c16b4b87a8674b91429b45
tree4951425f021c5c9cd7ebc79a35a554c91c9aa19b
parentb88b2178d40147be6c28dd9b97905ee1dc5366d5
Sanitize pgpsigFormat()

- Eliminate bogus size calculations: we have a buffer of td->count size
  that may or may not contain legal OpenPGP signature. Leave it up to
  pgpPrtPkts() to validate & figure it out and check its return code instead,
  eliminating need to repeat a bunch of tedious calculations here.
- Use non-zero signature version is used as a hint for valid signature,
  should be "close enough" for the rest of the code.
lib/formats.c