🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64775

xBin library version 0.1

#64775
From: Chris AtLee
Date: Tue, 08 Apr 2003 05:21
41 lines
2787 bytes
I've just completed basic testing on my xBin implementation.  It can be
found at:

http://atlee.ca/xbin-0.1.tar.gz

I've developed this on my Debian linux system, so it may take some
tweaking to get working in Windows.  I'd be interested in any patches or
suggestions people have on it.

The current make target is the xbintest application which accepts a
filename on the command line.  It calculates the hash tree and all the
Message-ID headers and Content-SHA1-Tree headers and then verifies a
"message" using only those headers.  Hopefully it will print out "Part i
OK" for each part in a file :)

For binary posting software, the functions of interest are:
xbMakeTree - makes a hash tree from a given file
xbCalcPartSizes - figures out how big articles should be
xbMakeMessageId - generates a string to include in the Message-ID header
xbMakeTreeComplement - generates a string to include in the
Content-SHA1-Tree header

For news readers, the only function you really need to know about is
xbVerifyMessage, which looks at an article's headers and (decoded!) data
to determine if the data in the article together with the hashes in the
Content-SHA1-Tree header can be combined to get the root hash.

Things left to do are:
Re-organize into smaller files
Finish repost request, fileset and parity data article support
(Most of the code for generating parity data and using it to recreate
articles is already there in xbrs.c, but the interface needs work)
More testing is needed, I got rid of some major memory leaks, but there
are probably smaller ones hiding around in there.
Make sure it builds on Windows
Shared library build
Integration into popular news posting / downloading tools :)

Cheers,
Chris
Technical Details
Message-ID: <pan.2003.04.08.05.21.36.142899@canada.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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <pan.2003.04.08.05.21.36.142899@canada.com>
Subject: xBin library version 0.1
Date: Tue, 08 Apr 2003 05:21:47 GMT
From: "Chris AtLee" <catlee@canada.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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail
User-Agent: Pan/0.13.4 (She had eyes like strange sins. (Debian GNU/Linux))
Newsgroups: news.software.nntp
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 40
NNTP-Posting-Host: 24.114.32.59
X-Complaints-To: abuse@rogers.com
X-Trace: news01.bloor.is.net.cable.rogers.com 1049779307 24.114.32.59 (Tue, 08 Apr 2003 01:21:47 EDT)
NNTP-Posting-Date: Tue, 08 Apr 2003 01:21:47 EDT