shishi_krberror_set_cname(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_cname β€” a lil function from the shishi manual, section 3 πŸŽ€

okay bestie, sit down, hydrate, and let's talk about the most lowkey iconic little setter in the whole Shishi library πŸ’–


🌸 NAME 🌸

shishi_krberror_set_cname β€” it's an API function, babes. that's the whole job title. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

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

like… look at her. four whole arguments. main character energy fr fr ✨


πŸ’œ ARGUMENTS πŸ’œ

  • Shishi * handle β€” the shishi handle, and no you cannot just make one up, it has to be allocated by shishi_init(). periodt.
  • Shishi_asn1 krberror β€” the krberror, which you get from shishi_krberror(). no shortcuts, bestie, that's where she comes from 🫢
  • Shishi_name_type name_type β€” the type of principal (yes, the principal's type). go check Shishi_name_type if you wanna see the options, but usually it's just SHISHI_NT_UNKNOWN. that's the default vibe, iykyk.
  • const char * cname[] β€” an input array holding the principal name. an array, plural energy, not one sad little string. 🌈

πŸ’… DESCRIPTION πŸ’…

so what does she actually do? she sets the principal field inside krberror to the value you specified. that's it. that's the function. no cap. set it and go. πŸ”₯


⭐ RETURN VALUE ⭐

returns SHISHI_OK iff it was successful. if you get SHISHI_OK back, she ate, and you can go about your day πŸ’–


😭 REPORTING BUGS 😭

found a bug? not you being the detective πŸ•΅οΈβ€β™€οΈ report it to <bug-shishi@gnu.org>.


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.

(translation: share her, remix her, just keep the receipts 🧾✨)


πŸ“ SEE ALSO πŸ“

the full documentation for shishi lives in a Texinfo manual. if the info and shishi programs are properly installed at your site, then running:

info shishi

should give you access to the complete manual. go read it, bestie, it's giving lore πŸ“–


mwah πŸ’‹ that was shishi_krberror_set_cname(3), from the shishi manual, version 1.0.3. stay slay, stay compiled, and remember: set your cname, then log off πŸ¦‹βœ¨