shishi_safe_cksum(3)
π shishi_safe_cksum(3) π
okay bestie, so this one lives in the shishi manual β third section, library calls, the whole vibe. it's an API function and it's lowkey iconic. let's get into it π«Ά
β¨ NAME β¨
shishi_safe_cksum β it's an API function, that's the whole name, no notes π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_safe_cksum(Shishi * handle, Shishi_asn1 safe, int32_t *
cksumtype, char ** cksum, size_t * cksumlen);
like yes, that's the whole signature, and yes, you can absolutely copy-paste it, i did it for you π
π ARGUMENTS π
Shishi * handleβ the shishi handle, and it has to be the one you allocated withshishi_init(). no improvising, no bootleg handles, ok? πShishi_asn1 safeβ thesafeobject, as allocated byshishi_safe(). you gotta have made it first, it's giving prerequisites β¨int32_t * cksumtypeβ this is an output, bestie. it's where the checksum type comes back to you πchar ** cksumβ output array holding the newly allocated checksum data from SAFE. brand new buffer, fresh out the function πsize_t * cksumlenβ output size of the output checksum data buffer. so you know exactly how much you got π
π¦ DESCRIPTION π¦
so what it does is read the checksum value from KRB-SAFE. that's the mission, that's the moment β¨
and here's the part you cannot skip, bestie, because it's the whole ballgame: cksum is allocated by this function, which means it is the responsibility of caller to deallocate it. that's you. you're the caller. you're the main character and the main character frees the memory π
not me forgetting to free itβ¦ couldn't be meβ¦ but fr fr, if you don't free it, that's a leak, and leaks are not slay π
β RETURN VALUE β
Returns SHISHI_OK iff successful. that's it, that's the whole deal. if you see SHISHI_OK you ate π½οΈ
π REPORTING BUGS π
found a bug? don't be shy, don't gatekeep β 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. like, go off, remix it, 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. it's giving the source of truth, iykyk π
okay that's the whole page, bestie, you understood it perfectly, no cap. this was shishi 1.0.3, shishi_safe_cksum(3) β mwah, go free your memory, ily π«Άπβ¨
π¦ 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