shishi_authenticator_set_cname(3)
β¨ shishi_authenticator_set_cname β¨
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 that goes by shishi_authenticator_set_cname. yes the name is a whole mouthful, i know, but she's worth it. let's get into it π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_authenticator_set_cname(Shishi * handle, Shishi_asn1
authenticator, Shishi_name_type name_type, const char * cname[]);
there she is. four args, one int coming back at you. iconic honestly π«Ά
π¦ ARGUMENTS π¦
Shishi * handleβ your shishi handle, the one you got handed back fromshishi_init(). she's the whole vibe, everything runs through her.Shishi_asn1 authenticatorβ the authenticator itself, allocated byshishi_authenticator(). this is the thing we're editing, the main character of this whole operation πShishi_name_type name_typeβ the type of principial (yes, that's how the original spells it, and i'm not about to correct the ancestors π), seeShishi_name_typefor the full list. usually it'sSHISHI_NT_UNKNOWN. like, nine times out of ten, that's the one.const char * cname[]β an input array holding the principal name. it's an array, bestie, not a single string. keep that in mind or you WILL be confused later.
π DESCRIPTION π
so what does she actually do? she sets the principal field inside your authenticator to whatever value you hand her. that's it. that's the whole job. simple, clean, does exactly what it says on the tin. no cap. β¨
π RETURN VALUE π
returns SHISHI_OK iff successful. and that "iff" is doing real work β if it's not SHISHI_OK, something went sideways, so check it, fr fr.
π REPORTING BUGS π
found a bug? don't just suffer in silence, tell the people:
- 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/
go on, send the email. the maintainers wanna know. it's giving community care π
π 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.
(yes you can copy it, yes you can share it, just keep the notice. that's the deal. slay. π )
π SEE ALSO π
the full documentation for shishi lives in a Texinfo manual β that's the big one, the whole encyclopedia. if the info pages and the shishi programs are properly installed at your site, then this command:
info shishi
should give you access to the complete manual. go forth and read, bestie πβ¨
so yeah β that's shishi_authenticator_set_cname(3), from shishi version 1.0.3, straight out of the shishi manual. stay safe, check your return values, and don't forget to pass an array for cname π¦π
π¦ 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