shishi_kdcrep_parse(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… shishi_kdcrep_parse(3) β€” the shishi manual, bestie edition πŸ’…

okay so welcome to the shishi section 3 page for shishi_kdcrep_parse, and honestly? she's a little icon. short, sweet, does exactly one thing. let's get into it πŸŽ€


✨ NAME ✨

shishi_kdcrep_parse β€” an API function, and yes that's the whole name, she doesn't need a long one πŸ’–


🌈 SYNOPSIS 🌈

#include <shishi.h>

int shishi_kdcrep_parse(Shishi * handle, FILE * fh, Shishi_asn1 *
       kdcrep);

like. look at her. three args, one return, no drama 🌸


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). she's the main character here, don't show up without her πŸ‘‘
  • FILE * fh β€” a file handle, and it has to be open for reading. reading only, bestie. don't be weird about it πŸ™ˆ
  • Shishi_asn1 * kdcrep β€” this is your output variable, and it comes pre-loaded with a freshly allocated KDC-REP. it's giving "here's your brand new thing, go be great" ✨

πŸ’– DESCRIPTION πŸ’–

so what she actually does: she reads an ASCII armored DER encoded KDC-REP out of the file, and then she populates the variable you handed her with it. that's it. that's the whole vibe. read the file β†’ fill the variable β†’ slay πŸ’…


⭐ RETURN VALUE ⭐

returns SHISHI_OK iff successful. and listen, iff is doing a lot of work in that sentence β€” it's an "if and only if" situation, so if you see SHISHI_OK, you ate. anything else? that's a you problem, not hers 😭


🫢 REPORTING BUGS 🫢

found a bug? don't just sit there spiraling, tell the people:

no cap, they actually want to hear from you 🌈


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. so yes, you may copy her. she's generous like that πŸ‘‘


πŸ”₯ 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. iykyk β€” go read the whole thing, there's lore πŸ¦‹


lowkey reminder: she parses KDC-REP specifically, so don't come at her with random bytes and expect magic. the DER has to be ASCII armored. periodt πŸ’€

and that's the page, bestie!! this was shishi version 1.0.3, page shishi_kdcrep_parse(3), brought to you by the shishi crew πŸ’œ go forth and parse responsibly 🧚🌸