shishi_apreq_set_authenticator(3)
π shishi_apreq_set_authenticator β from the shishi manual, section 3 π
okay bestie, sit down, we're doing crypto library lore today β¨ this one lives in the shishi manual, section 3, and it's literally the little function that tucks your encrypted authenticator into place. it's giving backstage-pass energy, no cap.
πΈ NAME πΈ
shishi_apreq_set_authenticator β an API function. yes that's the whole name section, she's lowkey mysterious like that π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_apreq_set_authenticator(Shishi * handle, Shishi_asn1 apreq,
int32_t etype, uint32_t kvno, const char * buf, size_t buflen);
there she is. copy her exactly, don't freestyle, i'm begging π
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). she's the main character, everything runs through her πShishi_asn1 apreqβ the AP-REQ you're adding the authenticator field to. this is the glow-up target πint32_t etypeβ the encryption type used to encrypt the authenticator. which flavor of crypto we're using, basically π§uint32_t kvnoβ the version of the key used to encrypt the authenticator. key vintages matter, periodt πconst char * bufβ input array holding the encrypted authenticator. the goods, in a buffer πsize_t buflenβ size of that input array with the encrypted authenticator. how many bytes of goods we're talking π
π DESCRIPTION π
so what she does: she sets the encrypted authenticator field in the AP-REP. that's the job, that's the whole vibe.
and like, where does that encrypted data come from? usually you make it by calling shishi_encrypt() on the DER encoded authenticator. that's the classic route, the DIY path, very craft-core π¨
but ngl, if you're trying to save time, you might wanna just use shishi_apreq_add_authenticator() instead β because she calculates the encrypted data and calls this function, all in one step. one function, one call, no extra chores. it's giving efficiency, it's giving convenience, it's giving "bestie why are you doing this by hand" πβ¨
β RETURN VALUE β
returns SHISHI_OK on success. that's the good ending, we love her π«Ά
π¦ REPORTING BUGS π¦
found a bug? tell the people! 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/
fr fr, if something's broken, say something β silence helps nobody π
πΈ 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 receipt π)
π 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 π
and that's the page, bestie!! π this was shishi version 1.0.3, page shishi_apreq_set_authenticator(3) β go forth, set those authenticators, stay iconic π
β¨
π¦ 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