shishi_krberror_set_sname(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_krberror_set_sname β€” bestie edition πŸ’–

okay so this is shishi_krberror_set_sname(3), a page from the shishi manual (that's section 3, the library-functions section, iykyk). buckle up, it's short and sweet and we're gonna slay it.


✨ NAME ✨

shishi_krberror_set_sname β€” it's an API function, bestie. that's the whole name. no notes. πŸ’…


🌸 SYNOPSIS 🌸

so first you gotta pull in the header, like:

#include <shishi.h>

and then the function itself looks like this:

int shishi_krberror_set_sname(Shishi * handle, Shishi_asn1 krberror,
       Shishi_name_type name_type, const char * sname[]);

it returns an int, it takes four things, and it's giving very specific. periodt.


πŸŽ€ ARGUMENTS πŸŽ€

here's the rundown of everything you're handing over, no cap:

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). like, you can't do anything without it, she's the main character. πŸ‘‘
  • Shishi_asn1 krberror β€” the krberror thing, as allocated by shishi_krberror(). that's the one we're editing, okay? πŸ¦‹
  • Shishi_name_type name_type β€” the type of principial (yes, that's how the original spells it, we're keeping it fr fr), see Shishi_name_type, and usually it's SHISHI_NT_UNKNOWN. that's the default vibe. ✨
  • const char * sname[] β€” an input array with the principal name. yes, an array, not a single string. she's plural, she contains multitudes. 🌈

πŸ’œ DESCRIPTION πŸ’œ

Set principal field in krberror to specified value. that's it. that's the whole job. you give her the name, she sets the principal field, we move on with our lives. iconic behavior honestly.


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. that's the good one, that's the one you want. if you see anything else, something went sideways and we're gonna have a conversation. 😭


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me, but okay β€” report bugs to <bug-shishi@gnu.org>. like, actually email them, they wanna know.


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 like, go off, redistribute her, just keep the receipts. 🫢


πŸ”₯ 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. that's your one-stop shop, bestie, go read the whole thing, it's lowkey fascinating.


and that's the whole page!! this was shishi_krberror_set_sname(3) from shishi version 1.0.3 β€” thanks for reading, ily, go set some principal fields responsibly πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ