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

πŸ’– shisa_enumerate_principals β€” the shishi page, bestie edition πŸ’–

okay so you're reading the shisa_enumerate_principals(3) manual page, part of shishi, and honestly? it's a lil bop. it does exactly one thing and it does it well. let's get into it πŸ¦‹


✨ NAME ✨

shisa_enumerate_principals β€” literally just an API function, no cap πŸ’…


🌸 SYNOPSIS 🌸

#include <shisa.h>

int shisa_enumerate_principals(Shisa * dbh, const char * realm, char ***
principals, size_t * nprincipals);

yes she's a long signature, she's got range, we love her for it 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • Shisa * dbh β€” the Shisa library handle, and you get one of these from shisa(). like, you can't just show up without your invite, bestie 🫢
  • const char * realm β€” the name of the realm, served as a null-terminated UTF-8 string. that's the vibe.
  • char *** principals β€” this is the returned pointer, and it points to a newly allocated array of just-allocated, null-terminated UTF-8 strings holding the principal names. so. many. asterisks. 😭 she's giving triple-pointer main character energy and honestly, iconic.
  • size_t * nprincipals β€” a pointer to an integer that gets updated with the number of principal names that were just allocated and handed back to you. a lil count, a lil receipt, we stan 🧚

πŸ’œ DESCRIPTION πŸ’œ

so what does she do? she extracts a list of all the principal names in the backend that belong to the realm realm, and hands them to you as null-terminated UTF-8 strings. all of them. the whole roster. periodt ✨

⚠️ real talk though: you, the caller, are responsible for deallocating all the strings and the array *principals. she gives, but she does not clean up after you. that's your job, babes. free your memory or it will simply haunt you πŸ’€

πŸ”₯ RETURN VALUE πŸ”₯

  • SHISA_OK on success β€” slay, we love a happy ending πŸ’–
  • SHISA_NO_REALM if the realm you specified doesn't exist β€” it's giving "who? never heard of her" πŸ™ˆ
  • or an error code otherwise. anything else means something went sideways, and you should go investigate.

πŸ› REPORTING BUGS πŸ›

found a bug? spill the tea, but do it politely and to the right place:

they want to hear from you, fr fr 🌈


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.

(read that again: no royalty, no fuss, just keep the notice. generous queen behavior πŸ’…)


🌟 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 it, it's the extended lore, iykyk πŸ“š


and that's the whole page, bestie!! every flag, every arg, every return code β€” nothing left out, all vibes intact ✨

🌸 signing off from shishi, version 1.0.3, on the shisa_enumerate_principals(3) page β€” go enumerate some principals, you absolute legend πŸ‘‘πŸ’–