shishi_safe_set_cksum(3)
π shishi_safe_set_cksum β like, the SAFE checksum setter, bestie π
okay so bestie, welcome to shishi_safe_set_cksum(3), a page from the shishi manual. yes it's a C API thing. yes you're gonna slay it. let's go π¦
β¨ NAME β¨
shishi_safe_set_cksum β API function. that's it. that's the whole name section. short king π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_safe_set_cksum(Shishi * handle, Shishi_asn1 safe, int32_t
cksumtype, const char * cksum, size_t cksumlen);
look at her. iconic signature. no notes π
π ARGUMENTS π
Shishi * handleβ the shishi handle, as allocated byshishi_init(). like, you gotta have one of these or we're not doing anything, fr fr.Shishi_asn1 safeβ thesafe, as allocated byshishi_safe(). your little SAFE object, the main character of this whole function πint32_t cksumtypeβ input checksum type to store in SAFE. yep, the type. which flavour of checksum we're putting in there.const char * cksumβ input checksum data to store in SAFE. the actual bytes, bestie, the good stuff β¨size_t cksumlenβ size of input checksum data to store in SAFE. how many bytes ofcksumwe're actually using. don't lie about this one π
π DESCRIPTION π
so what are we doing? we're storing a checksum value in SAFE. that's the vibe. that's the assignment. π
a checksum is usually created by calling shishi_checksum() on some application specific data, using the key from the ticket that is being used. iykyk π
and listen β if you're in your efficiency era and wanna save time, you may want to use shishi_safe_build() instead. that one calculates the checksum and calls this function in one step. two birds, one gorgeous function call π¦π¦ no cap.
π RETURN VALUE π
Returns SHISHI_OK iff successful. and like, that's the only good outcome here. if you don't get SHISHI_OK, something's giving... not it. π
π«Ά REPORTING BUGS π«Ά
found a bug? not me being the one to find bugs, but okay, if you did β report bugs 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/
they wanna hear from you, bestie. spill π
π 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.
(translation: use it, share 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.
like, go read it. it's giving β¨comprehensiveβ¨ π§
reminder bestie: every flag, every arg, every byte stayed exactly where it was. the vibe is new, the facts are not. periodt π
mwah π that was shishi_safe_set_cksum(3) from shishi version 1.0.3 β tysm for reading, go forth and checksum responsibly, ily, bye!! ππ¦πΈ
π¦ 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