🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87726

Re: [libcanlock] Version 3

#87726
From: Julien ÉLIE
Date: Fri, 19 May 2017 19:51
41 lines
2720 bytes
Hi Dennis,

>> Could you please better explain how to use the -c flag?
>>
>>   -c key,lock  Check Cancel-Key <key> against Cancel-Lock <lock>
> 
> You have to provide the scheme via -a:
> 
> | % 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 -a sha512 -c "adHjY67M8vrEmoRMptSiOWzt3nCmbFiUuaMTeAHZ2VwbfGyselzpU4F3n+DAs2/kL2Pjkq9g+KRNHzRPNL+a2A==","2Qzn5namk4E3FMjAELWTok31kyvyiIdbEcxKmAuBgVGjhQwy+w+9uXXsprpJL7V3krz2RxxZ3KbAWI9xVgIcrA=="
> | Good

OK, thanks.
Could SYNOPSIS be updated to make -a mandatory in the man page?
It currently reads:
       canlock [-a scheme] [-q] -c key,lock


And canlock help differentiate Cancel-Key <key> and <c-key-string>?
I thought the result of -k or -l was directly usable as the input of -c
when seeing:

$ ./canlock -h
   -c key,lock  Check Cancel-Key <key> against Cancel-Lock <lock>
   -k mid       Get Cancel-Key for Message-ID <mid> (secret is read from stdin)
   -l mid       Get Cancel-Lock for Message-ID <mid> (secret is read from stdin)

(The man page is more clear about that.)

Thanks for your work!

-- 
Julien ÉLIE

« The best preparation for tomorrow is to do today's work superbly
  well. » (William Osler)

Technical Details
Message-ID: <ofnibb$tep$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> <ofkto9$6n3$1@news.trigofacile.com> <1Tdgnna9IjmNfm%dennis@coredump.d--p.de>

Show Full Headers
Complete Article Headers
Message-ID: <ofnibb$tep$1@news.trigofacile.com>
Subject: Re: [libcanlock] Version 3
Date: Fri, 19 May 2017 21:51:02 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <AABZG2KiAr8AAAFf.A1.flnews@Server1.micha.freeshell.org> <ofkto9$6n3$1@news.trigofacile.com> <1Tdgnna9IjmNfm%dennis@coredump.d--p.de>
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=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 May 2017 19:51:07 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a77500740f57eb12eb87b0.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:740f:57eb:12eb:87b0";
 logging-data="30169"; 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: <1Tdgnna9IjmNfm%dennis@coredump.d--p.de>
X-Received-Body-CRC: 1417665977