shishi_krberror_errorcode_set(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_errorcode_set β€” bestie edition πŸ’–

okay so you're deep in the shishi manual, page shishi_krberror_errorcode_set(3), and honestly? this one is short and sweet. it's giving "tiny function, big responsibility." let's get into it. πŸŽ€


✨ NAME ✨

shishi_krberror_errorcode_set β€” an API function, periodt.


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_krberror_errorcode_set(Shishi * handle, Shishi_asn1 krberror,
int errorcode);

like, she's a function, she takes three things, she returns an int. that's the whole vibe check right there. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” your shishi handle, the one you already got from shishi_init(). yes, that one. don't be out here passing a random pointer, bestie. πŸ™ˆ
  • Shishi_asn1 krberror β€” the KRB-ERROR structure that has the error code you wanna set. she's the main character of this whole operation. πŸ‘‘
  • int errorcode β€” the brand new error code you want to set inside krberror. fresh out the box, ready to be assigned. ✨

πŸ’œ DESCRIPTION πŸ’œ

Set the error-code field to a new error code.

that's literally it. no plot twist, no hidden lore. you hand it a krberror and a shiny new errorcode, and she sets the error-code field to that value. lowkey iconic how simple it is. 🫢


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful.

okay so heads up: iff means if and only if, so SHISHI_OK is the good ending and literally anything else means something went sideways. check your return values, bestie, i am begging. 😭

πŸ“ REPORTING BUGS πŸ“

found a bug? not the vibe, but okay β€” 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: you can copy and share this file, any medium, no royalty needed β€” just keep the copyright notice and this notice intact. respect the rules and everyone eats. 🍽️✨)


🧚 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.

so like, if you want the whole lore, that's where you go. iykyk. πŸ’–


and that's the page!! 🌸 this lil slice of the shishi manual is from shishi version 1.0.3 β€” go forth and set those error codes, you absolute legend. mwah. πŸ’…πŸŽ€πŸ¦‹