shishi_authenticator_set_cksum(3)
π shishi_authenticator_set_cksum(3) β the shishi manual, bestie edition
okay so picture this: you're deep in the shishi man pages (the GNU one, yes, that shishi) and you need to slap a checksum into an authenticator. this page is literally just about that one function. let's go π
β¨ NAME β¨
shishi_authenticator_set_cksum β it's an API function, bestie. that's the whole name. no notes. π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_authenticator_set_cksum(Shishi * handle, Shishi_asn1
authenticator, int32_t cksumtype, char * cksum, size_t cksumlen);
look at her. five whole arguments. she's serving β¨
β¨ ARGUMENTS β¨
Shishi * handleβ the shishi handle, and you gotta get it fromshishi_init()first or it's giving nothing, fr.Shishi_asn1 authenticatorβ the authenticator itself, as allocated byshishi_authenticator(). she's the main character here, everything's getting stored in her.int32_t cksumtypeβ the checksum type you're feeding in, which is what gets stored in the authenticator.char * cksumβ the actual checksum data, input side, going straight into the authenticator.size_t cksumlenβ how big that checksum data is. the size of it. the length. you get it π
β¨ DESCRIPTION β¨
so what does she do? she stores a checksum value in the authenticator. that's it, that's the job. π«Ά
now, where do checksums even come from? usually you make one by calling shishi_checksum() on some application specific data, using the key from the ticket that is being used. very iykyk of you.
but here's the tea β β if you're trying to save time, you may want to use shishi_authenticator_add_cksum() instead, because that one calculates the checksum and calls this function, all in one step. one-stop shop. efficient queen. β¨
β¨ RETURN VALUE β¨
returns SHISHI_OK iff successful. that's the vibe check and she passes π
β¨ REPORTING BUGS β¨
found a bug? don't be shy, report it to <bug-shishi@gnu.org>. π
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
β¨ COPYRIGHT β¨
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (iconic of them honestly, no gatekeeping π)
β¨ SEE ALSO β¨
the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. go read it, it's lowkey a whole journey π
no cap, that's the entire page. every flag, every arg, every line β preserved, just with better energy π
this has been shishi_authenticator_set_cksum(3) from shishi, version 1.0.3 β thanks for coming to my ted talk, bestie, go forth and checksum responsibly π¦πΈπ
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms