canlock(1)
πΈ canlock(1) β the canlock girlie's guide π
okay so bestie, welcome to canlock β the CLI frontend for the libcanlock library, and honestly? she's iconic. this is the canlock page from the canlock 3.3.3 manual, and by the end you're gonna know her like you know your own playlist. periodt. β¨
π NAME π
canlock β CLI frontend for libcanlock library. that's it, that's the whole vibe. π«Ά
π SYNOPSIS π
like, here's how you actually talk to her:
canlock -h | -v
canlock [-q] -o
canlock [-a scheme] -l [uid]mid
canlock [-a scheme] -k [uid]mid
canlock [-q] -c key,lock
canlock [-q] -m keys,locks
lowkey six different moods, pick your fighter π
β¨ DESCRIPTION β¨
so this is a command line utility for the Netnews Cancel-Lock authentication scheme β yes that's the whole thing, no cap.
canlock can be used to create <c-lock> and <c-key> elements according to RFC 8315. the secret data is read from standard input (using EOF for termination β she keeps reading till you say you're done, main character energy fr fr π§).
canlock also provides a verify interface with the -c option. heads up though: an external header parser is required to extract the <c-key> and <c-lock> elements from the article headers. like, she doesn't do that part for you, that's a whole other job. π
the command line utilities canlock-mhp(1) and canlock-hfp(1) can be used for this purpose. cute little helpers, we love them.
π OPTIONS π
the following options are supported β and yes, we're doing all of them, no skipping:
-a schemeβ Use the hash algorithm specified by<scheme>. supported values for<scheme>(by version 3.0.0 of canlock) are:sha1,sha224,sha256,sha384,sha512. if this option is not present,sha256is used as the default value (because this is the mandatory algorithm defined by RFC 8315 β she's not being extra, the RFC said so π ).-l [uid]midβ Generate Cancel-Lock for Message-ID<mid>. the Message-ID can be prepended with an optional User-ID<uid>. the result is a<c-lock>element. slay.-k [uid]midβ Generate Cancel-Key for Message-ID<mid>. the Message-ID can be prepended with an optional User-ID<uid>. the result is a<c-key>element. yes she's basically-l's twin, they're matching β¨-c c-key,c-lockβ Verify whether<c-key>element of a cancel or supersede matches the<c-lock>element of a target article. basically the vibe check option π¦-m keys,locksβ Verify whether one of multiple keys matches one of multiple locks. the elements of both lists must be separated by SP (space) characters. and like, careful: anything must be passed as single parameter of the"-m"option, use appropriate quoting. yes that's a whole thing, don't come for me, just quote it properly π-qβ Write no result to standard output. she's being quiet, mysterious, lowkey.
β οΈ okay listen:-qis only valid if specified before-cand-ooptions. she's picky about order, it's her thing. don't test her.
-hβ Print help message, then exit. the "girl help" option π-oβ Print whether libcanlock reports support for overwriting secret data in memory. the exit status is zero ifcl_clear_secret(3)returned zero. spy shit, honestly π₯-vβ Print version and compile time options, then exit. she's introducing herself, love that for her π
π EXIT STATUS π
Zero on success or regular exit respectively. all other values indicate an error. that's the whole rule. no in-between, she's either good or she's not.
π AUTHORS π
Michael Baeuerle β the legend who made this happen. respect on the name. π
π REPORTING BUGS π
Report bugs to <mailto:michael.baeuerle@gmx.net>. be nice about it, she's trying her best.
β STANDARDS β
canlock tries to comply with the following standards β she's an overachiever, we stan:
π¦ SEE ALSO π¦
the whole friend group, fr fr:
canlock-hfp(1)canlock-mhp(1)cl_clear_secret(3)cl_get_lock(3)cl_get_key(3)cl_split(3)cl_verify(3)cl_verify_multi(3)http://en.wikipedia.org/wiki/Usenet
that's the whole page bestie, you ate that. mwah π
written for the canlock 3.3.3 manual, dated 2026-07-06, on Unix β go forth and cancel-lock responsibly, ily πΈβ¨
π¦ where this page comes from
- epel 10: canlock 3.3.3-2.el10_3 Β· BSD-3-Clause AND NLPL AND ICU
- π the page's license: ICU
- (c) 2018-2024 Michael Baeuerle
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms