shishi_krberror_methoddata(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_methoddata β€” the manual page bestie πŸ’–

okay so real quick, this is shishi_krberror_methoddata(3) from the shishi manual, and she's an API function. buckle up, we're getting a METHOD-DATA out of an e-data field and honestly? iconic. πŸŽ€


✨ NAME ✨

shishi_krberror_methoddata β€” API function

like literally. that's the name. that's the whole job description. πŸ‘‘


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_krberror_methoddata(Shishi * handle, Shishi_asn1 krberror,
Shishi_asn1 * methoddata);

that's the vibe. that's the whole thing. slay. πŸ’…


✨ ARGUMENTS ✨

  • Shishi * handle β€” the shishi handle, and bestie you gotta get this one from shishi_init(). no handle, no service, periodt.
  • Shishi_asn1 krberror β€” a KRB-ERROR structure that's carrying an error code. that's the whole point of her, she's got the error code in there.
  • Shishi_asn1 * methoddata β€” output param, the place where the ASN.1 METHOD-DATA goes. she's a pointer so she can write back to you. 🫢

✨ DESCRIPTION ✨

so what does this do fr fr? it extracts the METHOD-DATA ASN.1 object out of the e-data field. that's it, that's the mission.

but here's the catch, and this one matters, so listen up πŸ”₯: the e-data field will only contain a METHOD-DATA if the krberror error code is SHISHI_KDC_ERR_PREAUTH_REQUIRED. any other error code and there's just... nothing there for you. the vibe check fails. πŸ’€


✨ RETURN VALUE ✨

returns SHISHI_OK iff successful. that's the good ending, that's the one you want. 🌈


✨ REPORTING BUGS ✨

found a bug? don't just scream into the group chat, actually report it:

they want to hear from you, ngl. πŸ›


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: go off, copy it, remix it, just keep the receipt. receipts are important. 🧾✨)


✨ 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, then this command

info shishi

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


okay that's the whole page, you're officially a shishi girlie now. this was shishi 1.0.3, page shishi_krberror_methoddata(3) β€” mwah, go forth and extract that METHOD-DATA bestie πŸ’–πŸ¦‹πŸŒΈ