summaryrefslogtreecommitdiff
path: root/news/pgpmoose/files/patch-pmcheck
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2001-10-10 07:12:15 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2001-10-10 07:12:15 +0000
commit0455c140c5e80d079d4f451cba3c361834b02afb (patch)
tree15e57df68775eb155509773656c25155fca978d3 /news/pgpmoose/files/patch-pmcheck
parentUnbroke on -stable. (diff)
- Add support for NEWSCTL
- patched pmcheck to work with more groups like documented - patched pmcheck to give error result in more cases - patched patch-pmdaemon to use FreeBSD paths.
Notes
Notes: svn path=/head/; revision=48644
Diffstat (limited to 'news/pgpmoose/files/patch-pmcheck')
-rw-r--r--news/pgpmoose/files/patch-pmcheck73
1 files changed, 73 insertions, 0 deletions
diff --git a/news/pgpmoose/files/patch-pmcheck b/news/pgpmoose/files/patch-pmcheck
new file mode 100644
index 000000000000..53f8dbf1c36e
--- /dev/null
+++ b/news/pgpmoose/files/patch-pmcheck
@@ -0,0 +1,73 @@
+--- pmcheck.orig Fri Nov 27 00:03:49 1998
++++ pmcheck Wed Oct 10 08:52:07 2001
+@@ -54,7 +54,7 @@
+
+ # Find all the authentication headers we can handle
+ grep -i '^X-Auth.*: *PGPMoose ' $FILE | \
+- sed -e 's/.* //' >$TF.g
++ sed -e 's/X-Auth.*: *PGPMoose V[0-9]*[.][0-9]* [A-Z]* //' >$TF.g
+
+ # For the time being, simply avoid cancel messages.
+ # Note that pmdaemon authenticates them, but you probably don't
+@@ -77,10 +77,10 @@
+
+ # Make the document we are going to check signatures on.
+ pmcanon $FILE >$TF.m
+-
++
+ # Loop checking all X-Auth: lines required
+ echo 0 >$TF.b
+-while read GROUP; do
++while read GROUP ARMOR; do
+ # Check whether this is an interesting X-Auth: line.
+ # This is determined by the existence of the $ACCEPT file.
+ # If it exists, only the groups/individuals mentioned are
+@@ -96,7 +96,7 @@
+ fi
+ # $1 $2 $3 $4 $5
+ # X-Auth: PGPMoose V1.1 PGP sci.crypt.research
+- set -- `grep -i "^X-Auth.*: *PGPMoose .* $GROUP\$" $FILE`
++ set -- `grep -i "^X-Auth.*: *PGPMoose .* $GROUP" $FILE`
+
+ # Check for version mismatch, but at the moment we just warn.
+ # It is pretty hard to know just what to do in this case.
+@@ -110,11 +110,21 @@
+ Version: 2.6
+
+ END_OF_SIG
+- sed -n -e "1,/^[Xx]-[Aa][Uu][Tt][Hh].*: *PGPMoose .* $GROUP\$/d" \
++ if [ "x$ARMOR" != "x" ]; then
++ for WORD in $ARMOR
++ do
++ echo $WORD >>$TF.s
++ done
++ fi
++ for WORD in `
++ sed -n -e "1,/^[Xx]-[Aa][Uu][Tt][Hh].*: *PGPMoose .* $GROUP/d" \
+ -e '/^ *$/,$d' \
+ -e '/^[^ ]/,$d' \
+ -e 's/^[ ]*//p' \
+- $FILE >>$TF.s
++ $FILE`
++ do
++ echo $WORD >>$TF.s
++ done
+ cat <<-END_OF_SIG >>$TF.s
+ -----END PGP MESSAGE-----
+ END_OF_SIG
+@@ -146,6 +156,7 @@
+ if [ "$VERBOSE" = true ]; then
+ echo "No public key for signature $GROUP"
+ fi
++ echo 2 >$TF.b
+ continue
+ ;;
+ 30)
+@@ -160,6 +171,7 @@
+ echo "Unknown PGP error, status = $STATUS"
+ cat $TF.e
+ fi
++ echo 2 >$TF.b
+ continue
+ ;;
+ esac