shishi_kdcreq_client(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_client(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3. yes we're in the library pages now, it's giving very "i read header files for fun" energy and honestly? iconic. this one's about shishi_kdcreq_client and it's a little API function that pulls a client principal name out of a KDC-REQ. let's go πŸ¦‹


✨ NAME ✨

shishi_kdcreq_client β€” an API function, fr fr


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_kdcreq_client(Shishi * handle, Shishi_asn1 kdcreq, char **
client, size_t * clientlen);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the Shishi library handle, which you make with shishi_init(). she's the main character, everything runs through her πŸ’…
  • Shishi_asn1 kdcreq β€” the KDC-REQ variable you want the client name from. yes we're getting it out of there. slay.
  • char ** client β€” a pointer to a newly allocated zero-terminated string holding the principal name. lowkey flexible: this may be NULL if you only wanna populate clientlen. no cap.
  • size_t * clientlen β€” pointer to the length of client on output, and note that this does not count the terminating zero. also may be NULL if you only wanna populate client. pick your fighter 🫢

πŸ’œ DESCRIPTION πŸ’œ

so basically: represent the client principal name in KDC-REQ as a zero-terminated string. that's the vibe. ✨

the string is allocated by this function, and β€” listen carefully bestie β€” it is the responsibility of the caller to deallocate it. not me, not shishi, not the universe. you. 😭

also, clientlen output does not include the terminating zero. the way that zero is just out here living its life uncounted... anyway.


πŸ”₯ RETURN VALUE πŸ”₯

Returns SHISHI_OK iff successful. that's it, that's the whole condition. if it's not SHISHI_OK, it was not, in fact, successful πŸ’€


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? report it to <bug-shishi@gnu.org>. GNU Shishi home page: http://www.gnu.org/software/shishi/ β€” general help using GNU software lives at http://www.gnu.org/gethelp/. go tell them, they wanna know πŸ“


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 license, bestie, it's very generous, we love that for us πŸ’–)


🌈 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 πŸ“–βœ¨


and that's the whole page, bestie!! this one shipped as part of shishi 1.0.3, and the manual page is shishi_kdcreq_client(3) β€” go forth and deallocate your strings, i believe in you πŸ§šπŸ’œ