shishi_asreq_clientrealm(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

πŸ’– NAME πŸ’–

shishi_asreq_clientrealm β€” bestie, it's an API function ✨ (from the shishi manual, section 3, iykyk)


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_asreq_clientrealm(Shishi * handle, Shishi_asn1 asreq, char **
client, size_t * clientlen);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the Shishi library handle, the one you made with shishi_init(). Your main character, honestly.
  • Shishi_asn1 asreq β€” the AS-REQ variable we're pulling the client name and realm out of. That's the assignment, periodt.
  • char ** client β€” a pointer to a freshly allocated, zero-terminated string holding the principal name and the realm. It can be NULL β€” and if you do that, it just populates clientlen only. Choose your fighter πŸ’…
  • size_t * clientlen β€” pointer to the length of client on output, and nope, that length does not count the terminating zero. Can also be NULL β€” in which case it only populates client. Either/or energy πŸ¦‹

✨ DESCRIPTION ✨

Okay so here's the vibe: this function converts the cname and realm fields out of the AS-REQ into a printable principal name format. Glow up, lowkey 🌈

The string? This function allocates it. Which means β€” and I need you to hear me on this β€” it is the caller's responsibility to deallocate it. Not the library's. Yours. Free it. Don't be the friend who leaves the group chat on read 🫢

Also, heads up bestie: the output length clientlen does not include the terminating zero. No cap.

πŸ‘‘ RETURN VALUE πŸ‘‘

Returns SHISHI_OK iff successful. That's it, that's the whole thing. Slay πŸ’…


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? Not the vibe, but okay, report 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. Iconic behaviour honestly, we love a permissive license ✨


🌟 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 off, read the whole thing πŸ“–πŸ’–


That was the whole page, bestie β€” written for shishi version 1.0.3, the shishi_asreq_clientrealm(3) manual page. Bye, ily, free your strings πŸ’œ