shishi_tkts_default_ccache_guess(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_tkts_default_ccache_guess ✨

okay so bestie, welcome to the shishi manual β€” specifically page shishi_tkts_default_ccache_guess(3), section 3, and yes she's a function πŸ’…

🌸 NAME 🌸

shishi_tkts_default_ccache_guess β€” literally an API function, that's the whole name, no notes πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

char * shishi_tkts_default_ccache_guess(Shishi * handle);

like, that's it. she takes one thing, she gives you back a string πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the Shishi library handle, and you get one of those by calling shishi_init(). that's your girl, she's the entry point, you need her first fr fr

πŸ’– DESCRIPTION πŸ’–

so the way this works is, she guesses the default ccache ticket filename for you 🧚

and how does she guess, you ask? okay so she's actually super straightforward:

  • it's the contents of the environment variable KRB5CCNAME β€” like if that's set, that's the answer, periodt
  • orrrr it's /tmp/krb5cc_UID where UID is your user's identity in decimal, exactly as returned by getuid() πŸ’«

that's the whole vibe check. environment variable first, fallback to the tmp path with your numeric UID in it. iykyk 🫢

⭐ RETURN VALUE ⭐

she returns the default ccache filename as a string πŸŽ€

⚠️ bestie listen. that string is yours to clean up. you have to deallocate it with free() yourself, by the caller. she is not doing it for you, she is handing you the keys and walking away. do not forget, do not leak, we do not do that here 😭

πŸ› REPORTING BUGS πŸ›

found a bug? (not me manifesting that πŸ™ˆ) 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.

like, iconic of them 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, the command

info shishi

should give you access to the complete manual. go read it, she's thorough ✨


and that's the whole page, bestie!! πŸ’–βœ¨

this was shishi_tkts_default_ccache_guess(3) from shishi version 1.0.3 β€” mwah, go free() your strings, ily, bye πŸŽ€πŸ¦‹πŸ’