shishi_authenticator_cksum(3)
β¨ shishi_authenticator_cksum β¨
okay bestie, so this one is a function from the shishi library β section 3, the library-calls girlies π
. It's called shishi_authenticator_cksum, and no cap, it's the one that goes digging through your authenticator for the checksum and hands it back to you. Let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_authenticator_cksum(Shishi * handle, Shishi_asn1
authenticator, int32_t * cksumtype, char ** cksum, size_t * cksumlen);
like... it's giving "one function, five arguments, zero drama" β¨
π ARGUMENTS π
Shishi * handleβ the shishi handle, the one you got fromshishi_init(). Your whole main character, fr.Shishi_asn1 authenticatorβ the authenticator, as allocated byshishi_authenticator(). She's the one we're snooping through πint32_t * cksumtypeβ output checksum type. We write the type in here for you πchar ** cksumβ newly allocated output checksum data from the authenticator. Fresh out the function, just for you πsize_t * cksumlenβ on output, the actual size of the allocated output checksum data buffer. She's telling you how much you got, periodt.
π« DESCRIPTION π«
So basically: it reads the checksum value out of the authenticator. That's it, that's the whole vibe.
Now listen carefully because this is the part that matters π β cksum gets allocated by this function, and it is the responsibility of the caller to deallocate it. Translation bestie: she made you a gift, you gotta throw out the wrapping yourself. Don't leave that memory just vibing in your process forever π
β RETURN VALUE β
Returns SHISHI_OK iff successful. That's the good ending, the slay ending, the one we want π
π¦ REPORTING BUGS π¦
Found a bug? Not the cute kind? 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, honestly β free to copy, just keep the receipts π§Ύ)
π 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 her, she's thorough π
okay and that's the whole page!! written for shishi version 1.0.3 β section 3 of the manual, bestie, and yes this is the last line so this is me signing off π β¨ bye ily, go deallocate your cksum π«Ά
π¦ 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