shishi_kdcreq_etype(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_kdcreq_etype β€” the manual page, bestie edition πŸ’–

okay so real talk, this is a page from the shishi manual (section 3, the library-calls girlies), and it's about one tiny little function that fishes an encryption type out of a KDC-REQ. she's small, she's specific, she's iconic. let's get into it πŸŽ€


✨ NAME ✨

shishi_kdcreq_etype β€” it's an API function, no cap 🫢


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_kdcreq_etype(Shishi * handle, Shishi_asn1 kdcreq, int32_t *
etype, int netype);

like yes she takes four things and gives you back an int. she's giving "small but essential" energy fr fr πŸ’…


✨ ARGUMENTS ✨

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). she's the main character here, everything runs through her πŸ‘‘
  • Shishi_asn1 kdcreq β€” the KDC-REQ variable you're pulling the etype field out of. that's the whole job tbh πŸ¦‹
  • int32_t * etype β€” the output encryption type. yes it's a pointer, yes she writes into it, that's the vibe ✨
  • int netype β€” which element number you want back. you have to tell her which one, she's not a mind reader 😭

✨ RETURN THE NETYPE ✨

so this returns the encryption type from the KDC-REQ, bestie. and the lil detail that matters: the first etype is number 1. not 0. one. don't come for me, that's just how she is πŸ’€


✨ RETURN VALUE ✨

she returns SHISHI_OK iff the etype was successful set. that's it. that's the whole condition. anything else and it's not SHISHI_OK, periodt πŸ’…


✨ REPORTING BUGS ✨

found something cursed? spill it to <bug-shishi@gnu.org> πŸ›πŸ“§


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 like, go off, but 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, this command

info shishi

should give you access to the complete manual. go read her, she's thorough 🌸


ngl if you got this far you're literally a scholar. the info page is right there, go consume it, you ate πŸ“

and that's the whole page, bestie β€” this was the shishi manual, version 1.0.3, page shishi_kdcreq_etype(3), and she's out πŸ’œβœ¨ no cap, go write some Kerberos code, you've got this 🫢🌈