shishi_key_principal(3)
π shishi_key_principal β the manual page bestie π
okay so real talk, this is a page from the shishi manual, section 3 (that's the library-functions girlies, iykyk). her name is shishi_key_principal(3) and she's lowkey one of the most chill functions in the whole library. let's get into it β¨
πΈ NAME πΈ
shishi_key_principal β literally just an API function, that's her whole thing π
π¦ SYNOPSIS π¦
#include <shishi.h>
const char * shishi_key_principal(const Shishi_key * key);
no cap, that's the entire signature. one function, one argument, one return. iconic behavior honestly π
π ARGUMENTS π
const Shishi_key * keyβ bestie this is the structure that holds key information. that's it. that's the whole vibe. she just wants the key struct and she'll handle the rest π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea β β this function grabs the principal part of the key owner principal name. and when we say principal part, we mean everything except the realm.
so if the full principal name is giving user@REALM energy, this function hands you back the user part and lets the realm do its own thing. main character energy for the principal, side quest energy for the realm π
π RETURN VALUE π
she returns the principal owning the key.
β οΈ IMPORTANT BESTIE β οΈ β this is NOT a copy of it. do not modify it. do not deallocate it. it's giving "borrowed pointer, look but don't touch" π she's letting you see it, not keep it. hands off, fr fr.
π REPORTING BUGS π
found a bug? don't be shy, tell the shishi girlies directly:
- 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/π«Ά
π 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.
(so basically: take it, share it, remix it, just keep the receipts bestie π)
π 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 cut π¬β¨
and that's the whole page bestie!! π¦ this lil number came straight out of shishi version 1.0.3 (yes, the version footer, we love her), and the manual page is shishi_key_principal(3). mwah, go forth and get those principals π
ππ
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 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