🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87779

Re: pgpverify and GnuPG 2.1

#87779
From: Julien ÉLIE
Date: Sun, 04 Feb 2018 19:35
123 lines
5751 bytes
Hi Thomas,

>> Yeah, you need gpg1 --verify --allow-weak-digest-algos.  I haven't fixed
>> this in pgpverify yet; that needs to be done.
> 
> I've done (tried to do :)) that, and it works for me (and some other
> people) - the last checkgroups for de.* was verified correctly.
> 
> A (git format-pach formatted) patch against pgpverify 1.29 is at
> <http://winterlamm.szaf.org/~thh/inn/Add-support-for-gpg-in-addition-to-gpgv.patch>,
> and a drop-in replacement for the /usr/lib/news/bin/pgpverify from
> Debian Stretch (current stable) is at
> <http://winterlamm.szaf.org/~thh/inn/pgpverify>.

Oh, interesting.  We may ship it with forthcoming INN 2.6.2 release.

I bet the following patch against INN would please you, so that to have support for $INN::Config::gpg :)
This way, pgpverify will work again for weak digest algorithms without any manual changes, once INN 2.6.2 is installed.

Maybe the order of checks "gpgv2 gpgv" and "gpg2 gpg" should be changed to "gpgv gpgv2" and "gpg gpg2" so that to take GnuPG 1.x preferably.

Do you know whether perl-nocem should also be updated to use gpg instead of gpgv?  (I am under the impression md5 is not used, but better be sure.)



Index: configure.ac
===================================================================
--- configure.ac	(révision 10237)
+++ configure.ac	(copie de travail)
@@ -315,10 +315,12 @@
 dnl GnuPG (which we prefer).
 DO_PGPVERIFY=true
 AC_ARG_VAR([GPGV], [Location of GnuPG gpgv program])
+AC_ARG_VAR([GPG], [Location of GnuPG gpg program])
 AC_ARG_VAR([PGP], [Location of PGP verification program])
 AC_PATH_PROGS([GPGV], [gpgv2 gpgv])
+AC_PATH_PROGS([GPG], [gpg2 gpg])
 AC_PATH_PROGS([PGP], [pgpv pgp pgpgpg])
-if test -z "$PGP" && test -z "$GPGV" ; then
+if test -z "$PGP" && test -z "$GPGV" && test -z "$GPG" ; then
     DO_PGPVERIFY=false
 fi
 AC_SUBST([DO_PGPVERIFY])
Index: doc/pod/inn.conf.pod
===================================================================
--- doc/pod/inn.conf.pod	(révision 10237)
+++ doc/pod/inn.conf.pod	(copie de travail)
@@ -289,9 +289,9 @@
 
 Whether to enable PGP verification of control messages other than cancel.
 This is a boolean value and the default in the F<inn.conf> sample file
-is based on whether configure found pgp, pgpv, pgpgpg, gpgv or gpgv2.
-Note that if the parameter is not present in the configuration file,
-it defaults to false.
+is based on whether configure found pgp, pgpv, pgpgpg, gpgv, gpgv2, gpg
+or gpg2.  Note that if the parameter is not present in the configuration
+file, it defaults to false.
 
 =item I<port>
 
Index: perl/INN/Config.pm.in
===================================================================
--- perl/INN/Config.pm.in	(révision 10237)
+++ perl/INN/Config.pm.in	(copie de travail)
@@ -115,11 +115,12 @@
 
 
 ##  Paths of external used programs.
-my @EXTPROGVAR = qw($awk $egrep $gpgv $perl $pgp $sed
+my @EXTPROGVAR = qw($awk $egrep $gpgv $gpg $perl $pgp $sed
 $sort $getftp $uustat $uux);
 our $awk = '@AWK@';
 our $egrep = '@EGREP@';
 our $gpgv = '@GPGV@';
+our $gpg = '@GPG@';
 our $perl = '@PERL@';
 our $pgp = '@PGP@';
 our $sed = '@SED@';
Index: scripts/innshellvars.in
===================================================================
--- scripts/innshellvars.in	(révision 10237)
+++ scripts/innshellvars.in	(copie de travail)
@@ -79,6 +79,7 @@
 EGREP='@EGREP@'
 PERL='@PERL@'
 GPGV='@GPGV@'
+GPG='@GPG@'
 PGP='@PGP@'
 SORT='@SORT@'
 GETFTP="@PATH_GETFTP@"
Index: scripts/innshellvars.pl.in
===================================================================
--- scripts/innshellvars.pl.in	(révision 10237)
+++ scripts/innshellvars.pl.in	(copie de travail)
@@ -91,6 +91,7 @@
 $egrep = '@EGREP@' ;
 $perl = '@PERL@' ;
 $gpgv = '@GPGV@' ;
+$gpg = '@GPG@' ;
 $pgp = '@PGP@' ;
 $sort = '@SORT@' ;
 $getftp = "@PATH_GETFTP@" ;
Index: scripts/innshellvars.tcl.in
===================================================================
--- scripts/innshellvars.tcl.in	(révision 10237)
+++ scripts/innshellvars.tcl.in	(copie de travail)
@@ -86,6 +86,7 @@
 set inn_egrep "@EGREP@"
 set inn_perl "@PERL@"
 set inn_gpgv "@GPGV@"
+set inn_gpg "@GPG@"
 set inn_pgp "@PGP@"
 set inn_sort "@SORT@"
 set inn_getftp "@PATH_GETFTP@"



-- 
Julien ÉLIE

« Ce qui est fait n'est plus à faire. »

Technical Details
Message-ID: <p57nal$n8n$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <n62tgi$4co$1@csiph.com> <n76ull$314p$1@csiph.com> <87h9igao6g.fsf@hope.eyrie.org> <nsn.1801090225.103@meneldor.ancalagon.de> <87608bg3eq.fsf@hope.eyrie.org> <nsn.1802041408.270@meneldor.ancalagon.de>

Show Full Headers
Complete Article Headers
Message-ID: <p57nal$n8n$1@news.trigofacile.com>
Subject: Re: pgpverify and GnuPG 2.1
Date: Sun, 4 Feb 2018 20:35:43 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <n62tgi$4co$1@csiph.com> <n76ull$314p$1@csiph.com> <87h9igao6g.fsf@hope.eyrie.org> <nsn.1801090225.103@meneldor.ancalagon.de> <87608bg3eq.fsf@hope.eyrie.org> <nsn.1802041408.270@meneldor.ancalagon.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Feb 2018 19:35:49 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a775008007fa94ad5c267b.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:8007:fa94:ad5c:267b";
 logging-data="23831"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0)
 Gecko/20100101 Thunderbird/52.6.0
In-Reply-To: <nsn.1802041408.270@meneldor.ancalagon.de>
Content-Language: fr
X-Received-Bytes: 5671
X-Received-Body-CRC: 3023100298