🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Ken Murchison Sun, 26 Jan 2003 00:18
Verifying control messages
#63646
Author: Ken Murchison
Date: Sun, 26 Jan 2003 00:18
19 lines
1863 bytes
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?

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.

TIA,
Ken
-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: Verifying control messages
#63647
Author: 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.
Re: Verifying control messages
#63649
Author: those who know me have no need o...
Date: Sun, 26 Jan 2003 01:56
34 lines
2351 bytes
in news.software.nntp i read:

>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?  

is it correct operation?  no not really.  but it is the way the scripts
work.  the scripts were all written on a unix system, and initially in
something of a rush.  current versions of pgpverify understand this problem
and will convert wire-format end-of-line termination (<cr><lf>) to unix eol
(<lf>).

>what sort of intelligence needs to be built into the verification
>function?

do as pgpverify does, convert <cr><lf> to <lf> in a copy of the message,
before trying to verify the signature.

>Also, does anyone have an archive of control messages that I can use for
>testing?  

<ftp://ftp.isc.org/pub/usenet/control/>.  pick any managed hierarchy (e.g.,
any of the big8) below there, in that directory are compressed files
containing all the control messages received by the isc for each group.
you'll only want relatively recent (post 1996) groups -- for recently
created groups check news.announce.newgroups, the control messages will all
be signed.  e.g.,
<ftp://ftp.isc.org/pub/usenet/control/rec/rec.skiing.alpine.moderated.Z>

-- 
bringing you boring signatures for 17 years
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