🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87718

Re: [libcanlock] Version 3

#87718
From: Julien ÉLIE
Date: Thu, 18 May 2017 19:47
42 lines
2609 bytes
Hi Michael,

> General:
> libcanlock is a standalone Cancel-Lock implementation without external
> dependencies.
>
> I have written the command line frontend "canlock" and added a GNU
> autotools based build system, some new test cases (for "make test")
> and man pages.

Oh, that's great!  Thanks for having modernized libcanlock!


> Currently tested to work on AIX, Cygwin, GNU/Linux, HP-UX, NetBSD and
> Solaris. More test results and bugreports are welcome.

Works on macOS Sierra (10.12) too.

I see that libcanlock supports sha224 and sha384.  Are you willing to 
add these algorithm hashes to the IANA registry.



Could you please better explain how to use the -c flag?

   -c key,lock  Check Cancel-Key <key> against Cancel-Lock <lock>


% printf "lm" | ./canlock -a sha512 -k "kl"
sha512:adHjY67M8vrEmoRMptSiOWzt3nCmbFiUuaMTeAHZ2VwbfGyselzpU4F3n+DAs2/kL2Pjkq9g+KRNHzRPNL+a2A==
% printf "lm" | ./canlock -a sha512 -l "kl"
sha512:2Qzn5namk4E3FMjAELWTok31kyvyiIdbEcxKmAuBgVGjhQwy+w+9uXXsprpJL7V3krz2RxxZ3KbAWI9xVgIcrA==
% ./canlock -c 
"sha512:adHjY67M8vrEmoRMptSiOWzt3nCmbFiUuaMTeAHZ2VwbfGyselzpU4F3n+DAs2/kL2Pjkq9g+KRNHzRPNL+a2A==","sha512:2Qzn5namk4E3FMjAELWTok31kyvyiIdbEcxKmAuBgVGjhQwy+w+9uXXsprpJL7V3krz2RxxZ3KbAWI9xVgIcrA=="
Mismatch

-- 
Julien ÉLIE

« Et maintenant, la balle est dans le camp des slalomeurs. »

Technical Details
Message-ID: <ofkto9$6n3$1@news.trigofacile.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.(19219).mbox.7z!not-for-mail
References: <AABZG2KiAr8AAAFf.A1.flnews@Server1.micha.freeshell.org>

Show Full Headers
Complete Article Headers
Message-ID: <ofkto9$6n3$1@news.trigofacile.com>
Subject: Re: [libcanlock] Version 3
Date: Thu, 18 May 2017 21:47:21 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <AABZG2KiAr8AAAFf.A1.flnews@Server1.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 May 2017 19:47:21 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a7750034c60c1b7a88a0dc.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:34c6:c1b:7a88:a0dc";
 logging-data="6883"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0)
 Gecko/20100101 Thunderbird/45.8.0
In-Reply-To: <AABZG2KiAr8AAAFf.A1.flnews@Server1.micha.freeshell.org>
X-Received-Body-CRC: 3601767066
X-Received-Bytes: 2622