Commit graph

34 commits

Author SHA1 Message Date
Fabrizio Tarizzo
a028c9e36c initial support for sequoia-sq 2024-12-21 15:41:14 +01:00
Julien ÉLIE
cff57cd73a Note version requirement for GnuPG
1.30 required GnuPG 1.4.20 or later or 2.1.0 or later.  Note this
in the changelog.
2020-12-24 11:44:32 -08:00
Russ Allbery
e8b0c03c09 Fix some typos in the changelog 2018-12-17 15:29:48 -08:00
Russ Allbery
0f60a37145 Import pgpverify version 1.30 from INN
Support for GnuPG's gpg binary (in addition to gpgv).  gpg (from
GnuPG 1.x) still validates signatures made with weak digest
algorithms like MD5 whereas current versions of gpgv no longer do.
Patch from Thomas Hochstein.

Use https for the isc.org web site.
2018-02-11 11:43:05 -08:00
Russ Allbery
46f63786db Import version pgpverify 1.29 from INN
Changes include:

- Disambiguate numbered lists from description lists in POD to silent
  a pod2man warning.

- Add a --findid=<string> flag to explicitly search for <string> in the
  output from PGP's analysis of the message.  In case the signature is
  valid but does not contain <string>, pgpverify exits with the new
  exit status 4.

- Use the INN::Config Perl module instead of innshellvars.pl to
  accomodate the new build process of INN 2.5.

plus coding style, comment style, and whitespace cleanups.
2016-10-17 16:14:22 -07:00
Russ Allbery
380104043b Add additional Z<> markup to pgpverify for Pod::Simple
Pod::Simple is now more aggressive about disambiguating numbered
lists from text lists, so add more Z<> markup to make it clear that
exit statuses shouldn't be turned into a numbered list.
2016-10-17 16:10:37 -07:00
Russ Allbery
828b42af28 Change my email address to eagle@eyrie.org 2014-04-06 17:30:33 -07:00
Russ Allbery
ef5812a96d Default to pubring.gpg when trustedkeys.gpg is not found in the default key
location, for backward compatibility.
2005-07-03 01:01:32 +00:00
Russ Allbery
e30d89ef6b Return the correct exit status in the event of known failures instead of
always returning 255.  Reported by Awais Riaz.
2005-01-18 01:34:27 +00:00
Russ Allbery
c7a080b58a Fix the -test switch to actually do something. Improve date generation
when logging to standard output.
2003-12-11 06:58:56 +00:00
Russ Allbery
a02a578880 Fix a bug in the recognition of wire-format articles, reported by Jack
Bates.
2003-10-05 22:45:13 +00:00
Russ Allbery
1c4a1cb3d3 Add back in a missing +language=en forgotten in the last change. 2003-07-07 02:36:49 +00:00
Russ Allbery
dea04e918e Bump revision number to match CVS revision number. Replaced all signature
verification code with code that uses detached signatures.  Signatures
generated by GnuPG couldn't be verified using attached signatures without
adding a Hash header, and this was the path of least resistance plus
avoids munging problems in the future.  Code taken from PGP::Sign.
2003-07-07 02:35:00 +00:00
Jeffrey M. Vinocur
e434243bbf Documentation proofreading changes. 2002-12-03 05:17:11 +00:00
Russ Allbery
a71a0a7527 Version 1.15. Drop support for Perl 4 in pgpverify. Convert the manual
page to POD and expand it, and include it directly in the script.
Reorganize the script so that it begins to be more structured with proper
subs, and make it pass use strict.  Fixed support for the -test switch.
2002-11-25 22:36:01 +00:00
Jeffrey M. Vinocur
86c134e5a3 Error message mentioned pgp when it meant gpgv. 2002-11-16 21:29:27 +00:00
Alex Kiernan
10efdc162f Fix two problems - if you don't have pgp installed the code gives up
even if that wasn't what you wanted to use, and secondly it looks for
pubring.pgp rather than pubring.gpg even when running gpg.
2002-05-31 06:33:12 +00:00
Russ Allbery
af60f8c650 Version 1.14. Native support for GnuPG without the pgpgpg wrapper,
using GnuPG's program interface by Marco d'Itri.  Always use Sys::Syslog
without any setlogsock call for Perl 5.6.0 or later, since Sys::Syslog in
those versions of Perl uses the C library interface and is now portable.
Default to expecting the key ring in $inn'newsetc/pgp if it exists.  Fix a
portability problem for Perl 4 introduced in 1.12.
2002-04-18 04:29:17 +00:00
David Lawrence
43f8e6125a Version 1.13.1. Nothing functional, just moved the innshellvars.pl line to
the head of the script, to accomodate the build process of INN.
2001-02-17 03:31:30 +00:00
David Lawrence
4a83094f74 Version 1.13. Use INN's syslog_facility if available. 1999-12-14 16:36:54 +00:00
David Lawrence
884e098f66 Version 1.12. Support for GnuPG. Use /usr/ucb/logger, if present, instead
of /usr/bin/logger (the latter of which, on Solaris at least, is some sort
of brain damaged POSIX.2 command which doesn't use syslog).  Made syslog
work for dec_osf (version 4, at least).  Fixed up priority of '.' operator
vs. bitwise operators.
1999-05-20 14:58:42 +00:00
David Lawrence
c9d6a5e049 Version 1.11. Code to log error messages to syslog. See $syslog and
$syslog_method configurable variables.  Configurably allow date stamp on
stderr error messages.  Added locking for multiple concurrent pgp
instances.  More clear error message if pgp exits abnormally.  Identify
PGP 5 "BAD signature" string.  Minor diddling for INN (path to
innshellvars.pl changed).
1998-10-14 01:30:38 +00:00
David Lawrence
7ca4c4a7c2 Version 1.10. Minor diddling for INN 2.0: use $inn/pathtmp if it exists,
and work with the new subst method to find innshellvars.pl.  Do not
truncate the tmp file when opening, in case it is really linked to another
file.
1998-06-15 13:35:35 +00:00
David Lawrence
efe069210c Version 1.9. Match 'Bad signature' pgp output to return exit status 3 by
removing '^' in regexp matched on multiline string.
1998-04-02 22:54:15 +00:00
David Lawrence
0732ff6e14 Version 1.8. Ignore final dot-CRLF if article is in NNTP format. 1998-03-18 19:03:01 +00:00
David Lawrence
feabce1cb3 Version 1.7. Parse PGP 5.0 'good signature' lines. Allow -test switch;
prints pgp input and output.  Look for pgp in INN's innshellvars.pl.
Changed regexp delimiters for stripping $0 to be compatible with old perl.
1998-03-02 22:17:59 +00:00
David Lawrence
b88cc96c42 Version 1.6. Handle articles encoded in NNTP format ('.' starting line
is doubled, \r\n at line end) by stripping NNTP encoding.  Exit 255 with
pointer to $HOME or $PGPPATH if pgp can't find key ring.  (Probably
doesn't match the necessary error message with ViaCrypt PGP.)  Failures
also report message-id so the article can be looked up to retry.
1998-02-03 15:42:28 +00:00
David Lawrence
54bf1e9797 Force English lanugage for 'Good signature from user' by passing
+language=en on pgp command line, rather than setting the environment
variable LANGUAGE to 'en'.
1997-12-30 01:25:45 +00:00
David Lawrence
e124662eb5 Version 1.4. Now handles wrapped headers that have been unfolded.
(Though I do believe news software oughtn't be unfolding them.)  Checks to
ensure that the temporary file is really a file, and not a link or some
other weirdness.
1997-08-12 00:00:35 +00:00
David Lawrence
d05e386079 Version 1.3. Add support for ViaCrypt PGP 4.0. 1996-10-15 17:49:21 +00:00
David Lawrence
1542344316 Version 1.2.1. Allow the final line of the signature to not contain any
equal signs.
1996-07-11 18:07:01 +00:00
David Lawrence
45f9b3c7e8 Version 1.2. Add commented-out setting of PGPPATH. 1996-05-24 15:49:59 +00:00
David Lawrence
a231eb641a Version 1.1.1. Force English for PGP messages. 1996-05-08 20:32:44 +00:00
David Lawrence
9a4e2ab2d8 Original version. 1996-05-07 21:33:27 +00:00