shisa_enumerate_principals(3)
π 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 fromshisa(). 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_OKon success β slay, we love a happy ending πSHISA_NO_REALMif 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:
- report bugs to <bug-shishi@gnu.org>
- GNU Shishi home page: http://www.gnu.org/software/shishi/
- general help using GNU software: http://www.gnu.org/gethelp/
they want to hear from you, fr fr π
π COPYRIGHT π
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 ππ
π¦ where this page comes from
- debian bookworm: libshisa-dev 1.0.3-1+b1 Β· GPL-3.0-or-later
- debian trixie: libshisa-dev 1.0.3-5+b1 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: libshisa-dev 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: libshisa-dev 1.0.3-5
- ubuntu resolute: libshisa-dev 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: libshisa-dev 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms