shishi_krberror_remove_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_remove_sname β€” the manual page, but make it make sense πŸ’–

okay bestie, welcome to shishi_krberror_remove_sname(3) β€” yes that's a section 3 library page, yes we're reading it for fun, no you don't have to pretend you didn't need this. it's an API function from shishi and it's honestly so chill. let's go ✨


🌸 NAME 🌸

shishi_krberror_remove_sname β€” it's an API function, that's the whole name, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

int shishi_krberror_remove_sname(Shishi * handle, Shishi_asn1 krberror);

like. two arguments. one int back. we love a low-maintenance icon πŸ‘‘


πŸ’… ARGUMENTS πŸ’…

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). it's the whole personality of the session fr.
  • Shishi_asn1 krberror β€” the Krberror you're messing with, specifically the one whose server name field we're about to set. this is our main character 🫢

🌈 DESCRIPTION 🌈

so what are we actually doing here? we're removing the server name field in KRB-ERROR. periodt.

but here's the tea β˜• β€” it is not marked OPTIONAL in the ASN.1 profile, so we can't just... delete it and walk away. that's not how ASN.1 works, bestie, it would simply pass away. instead, what gets done is:

  1. set the name-type to UNKNOWN
  2. make sure the name-string sequence is empty

and that's it. that's the whole trick. lowkey elegant, highkey iconic ✨


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. that's it. if you see SHISHI_OK you ate. if you don't... well. πŸ™ˆ


😭 REPORTING BUGS 😭

found a bug? don't gatekeep it, tell the people:

they wanna hear from you fr fr πŸ’œ


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. slay, that's a very generous license, we respect it πŸ’–


🧚 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. iykyk πŸ“–βœ¨


and that's the page, bestie!! this was shishi 1.0.3, the shishi_krberror_remove_sname(3) manual page, and you understood every single bit of it because you're a genius and i'm so proud of you πŸ«ΆπŸ’œ go forth and remove those server name fields responsibly 🌸