shishi_principal_name_realm(3)
π shishi_principal_name_realm(3) π
okay bestie, so this is a page from the shishi manual (section 3, the library-call girlies π
), and it's all about one little function: shishi_principal_name_realm. yes it's a long name. yes she ate. let's get into it π«Ά
β¨ NAME β¨
shishi_principal_name_realm β an API function, periodt. that's literally her whole job description π
πΈ SYNOPSIS πΈ
like, the actual way you summon her:
#include <shishi.h>
int shishi_principal_name_realm(Shishi * handle, Shishi_asn1 namenode,
const char * namefield, Shishi_asn1 realmnode, const char * realmfield,
char ** out, size_t * outlen);
π ARGUMENTS π
okay so she takes seven things and every single one matters, no skipping π
Shishi * handleβ the Shishi library handle, and you get her fromshishi_init(). she's the main character, everything runs through her πShishi_asn1 namenodeβ an ASN.1 structure that's holding the principal name innamefield.const char * namefieldβ the name of the field insidenamenodewhere the principal name is chillin'.Shishi_asn1 realmnodeβ an ASN.1 structure holding the principal realm inrealmfield.const char * realmfieldβ the name of the field insiderealmnodewhere the principal realm is at.char ** outβ pointer to a freshly allocated, null-terminated string with the principal name in it. she can beNULLif you only wanna populateoutlen(lowkey iconic behaviour).size_t * outlenβ pointer to the length ofouton output, and nope, that does not count the terminating null. also may beNULLif you only wanna populateout. balanced queen βοΈ
π¦ DESCRIPTION π¦
so basically: she takes the principal name and the realm, both living all cozy inside an ASN.1 structure, and represents them as a null-terminated string. cute, right? π
the string? this function allocates it. which means it's your responsibility as the caller to deallocate it β she made it, you clean it up, that's the deal bestie π
also heads up: the output length outlen does not include that terminating null character. do not forget. i'm literally begging π
β RETURN VALUE β
returns SHISHI_OK if successful. slay. that's the whole vibe check β
π REPORTING BUGS π
found a bug? not me being the bearer of bad news but β report it 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. (fr fr, just keep the receipts π§Ύ)
π SEE ALSO π
the full documentation for shishi lives in a Texinfo manual β very β¨archivalβ¨ of them. if the info and shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. iykyk π
and that's the whole page, bestie!! this was shishi version 1.0.3, page shishi_principal_name_realm(3) β go forth and deallocate your strings, mwah π β¨
π¦ 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