shishi_tkts_from_ccache_mem(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_from_ccache_mem(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3, and today's main character is shishi_tkts_from_ccache_mem β€” an API function that's lowkey doing the most (affectionate). ✨


πŸŽ€ NAME πŸŽ€

shishi_tkts_from_ccache_mem β€” it's an API function, bestie. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_tkts_from_ccache_mem(Shishi * handle, const char * data,
size_t len, Shishi_tkts ** outtkts);

literally just four args and a dream 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” the shishi handle, and no you can't just make one up, it's gotta be allocated by shishi_init(). it's giving "bring your own handle" energy. πŸ™ˆ
  • const char * data β€” a constant memory buffer holding a ccache of size len. yes, const, meaning hands off, we're just looking respectfully. πŸ‘€
  • size_t len β€” the size of that memory buffer with the ccache data in it. it's the how-much of the whole situation. πŸ“
  • Shishi_tkts ** outtkts β€” pointer to the ticket set that will get allocated and populated for you. heads up though: the caller has to deallocate it on succes (and yes, the original really does spell it "succes", we love a typo queen πŸ’€). that's your ticket set now, bestie, you own it.

πŸ’œ DESCRIPTION πŸ’œ

so what does this icon actually do? it reads tickets from a ccache data structure and adds them to the ticket set. that's it, that's the job. πŸŽ€

now the tea: the ccache format is proprietary, and this function supports (at least) the 0x0504 format. if you wanna know the gritty details, go read the section The Credential Cache Binary File Format in the Shishi manual β€” it has a whole description of the file format waiting for you. iykyk. πŸ“–βœ¨


⭐ RETURNS ⭐

  • it hands back SHISHI_CCACHE_ERROR if the data does not represent a valid ccache structure (rip, invalid vibes 😭)
  • and SHISHI_OK on success (slay πŸ‘‘)

🌈 REPORTING BUGS 🌈

found a bug? don't be shy, report it to <bug-shishi@gnu.org>. πŸ›

GNU Shishi home page: http://www.gnu.org/software/shishi/

General help using GNU software: http://www.gnu.org/gethelp/

fr fr, the maintainers wanna hear about it β€” bugs don't fix themselves, bestie πŸ’…

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: share it, remix it, just keep the receipt πŸ§ΎπŸ’–)


🧚 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 off, read the whole thing, it's giving ✨ complete ✨.


and that's the page, bestie!! 🫢 this was shishi version 1.0.3, dated with all the love, and the page is shishi_tkts_from_ccache_mem(3) β€” periodt. πŸ’–πŸŽ€πŸ¦‹