shisa_principal_add(3)
β¨ shisa_principal_add β¨
okay bestie, welcome to the shishi manual, section 3 π
this one's a function, and it's literally called shisa_principal_add β yes, that's the whole vibe.
πΈ NAME πΈ
shisa_principal_add β an API function π (she's a function, she does API things, that's the whole name, no notes)
π¦ SYNOPSIS π¦
#include <shisa.h>
int shisa_principal_add(Shisa * dbh, const char * realm, const char *
principal, const Shisa_principal * ph, const Shisa_key * key);
π ARGUMENTS π
Shisa * dbhβ your Shisa library handle, the one you got fromshisa(). she's your girl, hold onto her π«Άconst char * realmβ the name of the realm that this principal belongs to.const char * principalβ the name of the principal you wanna add. and listen, plot twist: if you set this toNULL, then only the realmrealmgets created. that's it. that's the whole job.const Shisa_principal * phβ a pointer to a principal structure, holding all the info you want stored in the database.const Shisa_key * keyβ a pointer to a key structure, with the info you want stored in the database.
π DESCRIPTION π
She inserts the info you handed her into the database for the principal PRINCIPAL@REALM β¨
and if principal is NULL? then ph and key don't get used at all β literally not touched β so the only thing getting added to the database is the realm. that's the whole behavior, no cap π
β RETURN VALUE β
Returns SHISA_OK if everything got added successfully π or an error code otherwise (in which case, bestie, something went sideways π).
π REPORTING BUGS π
Report bugs to <bug-shishi@gnu.org>. GNU Shishi home page: http://www.gnu.org/software/shishi/ β and for general help using GNU software: http://www.gnu.org/gethelp/ π
π 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. (slay, that's a very chill license fr fr π)
π§ 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 giving main character energy πβ¨
and that's a wrap on shisa_principal_add(3) from the shishi manual, version 1.0.3 β thanks for reading, bestie, go add some principals π
ππ¦
π¦ 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