shishi_ticket_set_enc_part(3)
π shishi_ticket_set_enc_part β bestie's guide to the shishi manual π
okay so listen, this is a page from the shishi manual (section 3, the library functions girlies π«Ά) and we're about to make encrypted enc-part fields happen. no cap.
β¨ NAME β¨
shishi_ticket_set_enc_part β an API function, and yes she's exactly as niche as she sounds π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_ticket_set_enc_part(Shishi * handle, Shishi_asn1 ticket,
int32_t etype, uint32_t kvno, const char * buf, size_t buflen);
like. look at those parameters. iconic.
π ARGUMENTS π
Shishi * handleβ the shishi handle, bestie. you get one fromshishi_init()and you do NOT just make one up, okay? that's the rules. πShishi_asn1 ticketβ the Ticket you're adding the enc-part field to. she's getting a lil upgrade β¨int32_t etypeβ the encryption type used to encrypt enc-part. which flavor of crypto we're vibing with.uint32_t kvnoβ key version number. gotta know which key's turn it is πconst char * bufβ input array holding the encrypted enc-part. the goods. the payload. the moment. πsize_t buflenβ size of that input array with the encrypted enc-part. becausebufcan't just be out here with no length, that's chaos. π¦
π DESCRIPTION π
so what she does: she sets the encrypted enc-part field in the Ticket. that's it, that's the job, and she eats every time. π
and here's the tea on how that encrypted data usually gets made β you normally call shishi_encrypt() on the DER encoded enc-part. like, that's the pipeline.
but bestie, if you're in a rush (and who isn't, we're all busy), you may want to use shishi_ticket_add_enc_part() instead. she calculates the encrypted data and calls this function, all in one step. one step!! no extra work, main character energy, we love a two-for-one. π
β RETURN VALUE β
returns SHISHI_OK iff successful. and if it's not SHISHI_OK? that's a vibe check failure, go read the error. π
π REPORTING BUGS π
found a bug? first of all, relatable. second of all, report it to <bug-shishi@gnu.org> β they wanna hear it fr fr.
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. (that's the whole license vibe β no royalty, just keep the notice, periodt. π)
π¦ SEE ALSO π¦
the full documentation for shishi is maintained as a Texinfo manual, which is the fancy girl version of docs. if the info and shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. iykyk. π§
and that's the whole page, bestie β shishi 1.0.3, shishi_ticket_set_enc_part(3), slayed and delivered. go encrypt something cute. πβ¨πΈ
π¦ 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