🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Val�ry LANG Tue, 22 May 2001 07:09
pgp (gnupg 1.0.5 ...)
#52434
Author: Val�ry LANG
Date: Tue, 22 May 2001 07:09
4 lines
1036 bytes
Is it possible to verify the good working of pgp    (gnupg 1.0.5) in
inn 2.3.2 with a special command on prompt ?

Re: pgp (gnupg 1.0.5 ...)
#52439
Author: Florian Weimer
Date: Tue, 22 May 2001 21:09
9 lines
1221 bytes
valery.lang@cemef.cma.fr (Val�ry LANG) writes:

> Is it possible to verify the good working of pgp    (gnupg 1.0.5) in
> inn 2.3.2 with a special command on prompt ?

Sorry, what do you want to do? Do you want to check if the control
message processing works? I think you can invoke pgpverify manually
and feed it a control message in order to do that.
Re: pgp (gnupg 1.0.5 ...)
#52437
Author: Russ Allbery
Date: Tue, 22 May 2001 22:10
19 lines
1698 bytes
Val�ry LANG <valery.lang@cemef.cma.fr> writes:

> Is it possible to verify the good working of pgp (gnupg 1.0.5) in inn
> 2.3.2 with a special command on prompt ?

The easiest way to get GnuPG working with INN 2.3.2 is to compile and
install pgpgpg and then point pgpverify at it via innshellvars.pl (or
reconfiguring INN and letting it pick up pgpgpg at configure time).

INN CURRENT has a separate gpgverify script that you can replace pgpverify
with, and will have GnuPG support as part of pgpverify after I hear back
from tale.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: pgp (gnupg 1.0.5 ...)
#52447
Author: Alex Kiernan
Date: Wed, 23 May 2001 12:43
168 lines
7057 bytes
valery.lang@cemef.cma.fr (Val�ry LANG) writes:

> Is it possible to verify the good working of pgp    (gnupg 1.0.5) in
> inn 2.3.2 with a special command on prompt ?
> 

This isn't actually tested (yet), but I think it does the right thing
for gpg in 2.3.2; I haven't submitted it back though since as Russ
points out the plan is to do something different for 2.4 (note you
need to rerun autoconf after applying this, I haven't included the
configure patches as they're huge):

Index: upstream/inn/configure.in
diff -u upstream/inn/configure.in:1.1.1.2 upstream/inn/configure.in:1.2
--- upstream/inn/configure.in:1.1.1.2	Thu May  3 14:36:06 2001
+++ upstream/inn/configure.in	Wed May 23 11:51:14 2001
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.1.1.2 2001/05/03 13:36:06 alexk Exp $
+dnl $Id: configure.in,v 1.2 2001/05/23 10:51:14 alexk Exp $
 
-AC_REVISION($Revision: 1.1.1.2 $)dnl
+AC_REVISION($Revision: 1.2 $)dnl
 AC_PREREQ(2.13)
 
 dnl FIXME: The separable tests in this file should be broken out into
@@ -426,11 +426,14 @@
     INN_PERL_VERSION(5.003)
 fi
 
-dnl Look for PGP 5.0's pgpv, or pgp/pgpgpg if pgpv is not found.
+dnl Look for GPG, then for PGP 5.0's pgpv, or pgp/pgpgpg if pgpv is not found.
 pgpverify=true
-AC_PATH_PROGS(_PATH_PGP, pgpv pgp pgpgpg)
-if test -z "$_PATH_PGP" ; then
-    pgpverify=false
+AC_PATH_PROGS(_PATH_GPG, gpg)
+if test -z "$_PATH_GPG" ; then
+    AC_PATH_PROGS(_PATH_PGP, pgpv pgp pgpgpg)
+    if test -z "$_PATH_PGP" ; then
+        pgpverify=false
+    fi
 fi
 AC_SUBST(pgpverify)
 
Index: upstream/inn/backends/gpgverify.in
diff -u upstream/inn/backends/gpgverify.in:1.1.1.1 upstream/inn/backends/gpgverify.in:1.2
--- upstream/inn/backends/gpgverify.in:1.1.1.1	Thu May  3 14:36:06 2001
+++ upstream/inn/backends/gpgverify.in	Wed May 23 11:51:14 2001
@@ -49,9 +49,14 @@
 
 # Path to gpg binary
 my $gpg;
-foreach (split(/:/, $ENV{PATH}), qw(/usr/local/bin /opt/gnu/bin)) {
-	if (-x "$_/gpg") {
-		$gpg = "$_/gpg"; last;
+if ($inn::gpg) {
+	$gpg = $inn::gpg;
+}
+else {
+	foreach (split(/:/, $ENV{PATH}), qw(/usr/local/bin /opt/gnu/bin)) {
+		if (-x "$_/gpg") {
+		    $gpg = "$_/gpg"; last;
+		}
 	}
 }
 fail('cannot find gpg binary') if not $gpg;
@@ -135,7 +140,7 @@
 close TMP or errmsg("close $tmp: $!");
 
 my $opts = '--verify --quiet --batch --no-tty --status-fd=1';
-$opts .= " --homedir=$gpghome" if $gpghome;
+#$opts .= " --homedir=$gpghome" if $gpghome;
 
 open(PGP, "$gpg $opts < $tmp 2>&1 |") or fail("failed to execute $gpg: $!");
 
Index: upstream/inn/samples/parsecontrol.in
diff -u upstream/inn/samples/parsecontrol.in:1.1.1.1 upstream/inn/samples/parsecontrol.in:1.2
--- upstream/inn/samples/parsecontrol.in:1.1.1.1	Wed May  2 15:52:46 2001
+++ upstream/inn/samples/parsecontrol.in	Wed May 23 11:51:14 2001
@@ -1,7 +1,7 @@
 #! /bin/sh
 # fixscript will replace this line with code to load innshellvars
 
-##  $Revision: 1.1.1.1 $
+##  $Revision: 1.2 $
 ##  Initial parsing of control messages.
 
 WRITELOG=${PATHBIN}/writelog
@@ -179,7 +179,12 @@
 esac
 
 if $PGPVERIFY; then
-    PGPSENDER=`${SM} ${ARTICLE} | pgpverify`;
+    if [ -x ${GPG} ] ; then
+        VERIFY=gpgverify
+    else
+        VERIFY=pgpverify
+    fi
+    PGPSENDER=`${SM} ${ARTICLE} | ${VERIFY}`;
     PGP_STATUS=$?
     case "${ACTION}:${PGP_STATUS}" in
     verify:0)
Index: upstream/inn/scripts/innshellvars.in
diff -u upstream/inn/scripts/innshellvars.in:1.1.1.1 upstream/inn/scripts/innshellvars.in:1.2
--- upstream/inn/scripts/innshellvars.in:1.1.1.1	Wed May  2 15:52:46 2001
+++ upstream/inn/scripts/innshellvars.in	Wed May 23 11:51:14 2001
@@ -1,5 +1,5 @@
 #!@_PATH_SH@
-##  $Revision: 1.1.1.1 $
+##  $Revision: 1.2 $
 ##  Set up any and all shell variables that an INN shell script
 ##  might need.  Also sets umask.
 
@@ -72,6 +72,7 @@
 EGREP=@_PATH_EGREP@
 PERL=@_PATH_PERL@
 PGP=@_PATH_PGP@
+GPG=@_PATH_GPG@
 SORT="@_PATH_SORT@"
 GETFTP="@GETFTP@"
 COMPRESS=@COMPRESS@
Index: upstream/inn/scripts/innshellvars.pl.in
diff -u upstream/inn/scripts/innshellvars.pl.in:1.1.1.2 upstream/inn/scripts/innshellvars.pl.in:1.2
--- upstream/inn/scripts/innshellvars.pl.in:1.1.1.2	Thu May  3 14:36:09 2001
+++ upstream/inn/scripts/innshellvars.pl.in	Wed May 23 11:51:14 2001
@@ -3,7 +3,7 @@
 # Start Date:   Sat, 24 Aug 1996 22:08:19 +0200
 # Project:      INN 
 # File:         innshellvars.pl
-# RCSId:        $Id: innshellvars.pl.in,v 1.1.1.2 2001/05/03 13:36:09 alexk Exp $
+# RCSId:        $Id: innshellvars.pl.in,v 1.2 2001/05/23 10:51:14 alexk Exp $
 # Description:  Set up any and all variables that an INN perl script
 #               might need.
 
@@ -74,6 +74,7 @@
 $egrep = "@_PATH_EGREP@" ;
 $perl = "@_PATH_PERL@" ;
 $pgp = "@_PATH_PGP@" ;
+$gpg = "@_PATH_GPG@" ;
 $sort = "@_PATH_SORT@" ;
 $getftp = "@GETFTP@" ;
 $compress = "@COMPRESS@" ;
Index: upstream/inn/scripts/innshellvars.tcl.in
diff -u upstream/inn/scripts/innshellvars.tcl.in:1.1.1.1 upstream/inn/scripts/innshellvars.tcl.in:1.2
--- upstream/inn/scripts/innshellvars.tcl.in:1.1.1.1	Wed May  2 15:52:46 2001
+++ upstream/inn/scripts/innshellvars.tcl.in	Wed May 23 11:51:14 2001
@@ -4,7 +4,7 @@
 # Start Date:   Sat, 24 Aug 1996 23:45:34 +0200
 # Project:      INN
 # File:         innshellvars.tcl
-# RCSId:        $Id: innshellvars.tcl.in,v 1.1.1.1 2001/05/02 14:52:46 alexk Exp $
+# RCSId:        $Id: innshellvars.tcl.in,v 1.2 2001/05/23 10:51:14 alexk Exp $
 # Description:  Set up any and all variables that an INN tcl script
 #               might need.
 
@@ -71,6 +71,7 @@
 set inn_sed "@_PATH_SED@"
 set inn_perl "@_PATH_PERL@"
 set inn_pgp "@_PATH_PGP@"
+set inn_gpg "@_PATH_GPG@"
 set inn_inndf "${inn_newsbin}/inndf"
 set inn_egrep "@_PATH_EGREP@"
 set inn_sort "@_PATH_SORT@"

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC
Re: pgp (gnupg 1.0.5 ...)
#52518
Author: Marco d'Itri
Date: Sat, 26 May 2001 10:04
18 lines
1689 bytes
valery.lang@cemef.cma.fr wrote:

>Is it possible to verify the good working of pgp    (gnupg 1.0.5) in
>inn 2.3.2 with a special command on prompt ?
Get http://www.bofh.it/~md/gpgverify and put it in place of the original
pgpverify. Than you can check it works by pipeing a control message on
standard input.

You can add keys to the keyring with something like:

        gpg --keyring=/usr/local/news/etc/pgp/pubring.gpg --import \
                --allow-non-selfsigned-uid

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads