shishi_krberror_edata(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_edata β€” the manual page, but make it cute

okay bestie, buckle up, we're in the shishi manual (section 3, the library-calls girlies πŸŽ€) and this one is all about scooping extra error data out of a KRB-ERROR. yes ma'am. let's get into it πŸ’…


✨ NAME ✨

shishi_krberror_edata β€” an API function. that's the whole name, that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_krberror_edata(Shishi * handle, Shishi_asn1 krberror, char **
edata, size_t * edatalen);

look at her. four arguments, one int coming back at you. iconic behavior fr fr ✨


🫢 ARGUMENTS 🫢

  • Shishi * handle β€” the shishi handle, and no you can't just make one up, she has to be allocated by shishi_init(). periodt.
  • Shishi_asn1 krberror β€” a KRB-ERROR structure that's carrying an error code. that's the whole point of her πŸ’€
  • char ** edata β€” output array where the newly allocated error data lands. brand new allocation, fresh out the box πŸŽ€
  • size_t * edatalen β€” output length of that error data. so you know how much of it there is, no guessing 🧚

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she extracts the additional error data from the server. that's it, that's the job πŸ’…

and here's the tea: that data might be possibly empty. so don't come for her if there's nothing there, sometimes the server just has nothing to say and that's valid πŸ™ˆ


⭐ RETURN VALUE ⭐

returns SHISHI_OK iff successful. that's the only yes. anything else and we're not slaying, we're just surviving 😭


πŸ”₯ REPORTING BUGS πŸ”₯

found a bug? don't suffer in silence bestie, tell the people:


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.

like... generous, unbothered, royalty-free. main character energy honestly 🌈


🌟 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, this command:

info shishi

should give you access to the complete manual. iykyk πŸ“–βœ¨


okay that's the whole page, you ate that πŸ“ and just so you know where this came from: it's the shishi manual, version 1.0.3, and this little legend is shishi_krberror_edata(3). go forth and extract that error data, bestie πŸ’–πŸ¦‹βœ¨