🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63647

Re: Verifying control messages

#63647
From: greg andruk
Date: Sun, 26 Jan 2003 01:32
26 lines
2617 bytes
Ken Murchison wrote:

> While working on my own pgpverify() for Cyrus NNTP, it appears from
> testing with sample.control that when recreating the original signed
> message, each line is terminated with just "\n" and not with "\r\n" as
> appears when the message is tranmitted via NNTP.  Is this correct and
> can it be assumed that this will always be the case?  If not, what sort
> of intelligence needs to be built into the verification function?

Yeah, Usenet line endings are weird like that, thanks to a series of 
historical accidents.  Folding them down to '\n' for local processing is 
generally the right thing.

You could grab ftp://ftp.isc.org/pub/pgpcontrol/signcontrol and play with 
that.  If you can verify messages created with that script, you're doing it 
right.

> Also, does anyone have an archive of control messages that I can use for
> testing?  I don't want to start accepting live messages until I'm sure
> that I'm ready for primetime.

ftp://ftp.isc.org/usenet/control/ is a good bet.  All the Big-8 stuff has 
been signed for years, just poke around and grab some.  Samples in the 
news/ directory are especially good for testing because of all the fake 
control messages sent with bogus signatures over the past few years.
Technical Details
Message-ID: <siq0rilve513.dlg@meowing.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail
References: <3E33293F.DBA48910@oceana.com>

Show Full Headers
Complete Article Headers
Message-ID: <siq0rilve513.dlg@meowing.net>
Subject: Re: Verifying control messages
Date: Sun, 26 Jan 2003 01:32:54 GMT
From: greg andruk <gja@meowing.net>
References: <3E33293F.DBA48910@oceana.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.nntp
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: land of the glass pinecones
X-Meow: Meow
X-No-Repost: yes
X-Face: ')Fflcs!^R}Ds420ESFBO$}^v}i=A9jhnT\3.x#V)XnBrjF8FDwO).{#sN<#bI#A0Y-IU>I iz^}DhL#8nvP8,Ef*_4tdZUl#gwDK=7]>l"53tML>J1S8!)4vsDuy8j0]Rx
User-Agent: 40tude_Dialog/2.0.3.1 (fa55ea7b.432.45)
Lines: 25
NNTP-Posting-Host: 68.160.58.26
X-Complaints-To: abuse@verizon.net
X-Trace: nwrddc02.gnilink.net 1043544774 68.160.58.26 (Sat, 25 Jan 2003 20:32:54 EST)
NNTP-Posting-Date: Sat, 25 Jan 2003 20:32:54 EST