shishi_tkts_add_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_add_ccache_mem(3) πŸ’–

okay bestie, welcome to the shishi corner of the manual β€” this page is literally called shishi_tkts_add_ccache_mem and it lives in section 3, the "these are library functions, not commands, don't @ me" section πŸŽ€


✨ NAME ✨

shishi_tkts_add_ccache_mem β€” bestie, it's an API function 🫢


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_tkts_add_ccache_mem(Shishi * handle, const char * data,
       size_t len, Shishi_tkts * tkts);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” the shishi handle, and no you can't just manifest one, you get it from shishi_init() πŸ’…
  • const char * data β€” a constant memory buffer holding a ccache of len size. it's giving "raw bytes, do not touch" ✨
  • size_t len β€” the size of that memory buffer with the ccache data. the vibe check on how many bytes we're reading πŸ”₯
  • Shishi_tkts * tkts β€” an allocated key set where the tickets are gonna be stored. this is the lil home the tickets move into 🏠

πŸ‘‘ DESCRIPTION πŸ‘‘

Read tickets from a ccache data structure, and add them to the ticket set. that's it, that's the whole personality β€” read 'em, drop 'em in, slay πŸ’–

The ccache format is proprietary, and this function supports (at least) the 0x0504 format. so yeah, at minimum that one, no promises about the mysterious ones πŸ‘€

See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. iykyk, go read it, it's all there 🌈


⭐ RETURNS ⭐

  • Returns SHISHI_CCACHE_ERROR if the data does not represent a valid ccache structure 😭
  • and SHISHI_OK on success πŸŽ‰

like. it tells you which one. iconic behavior honestly.


πŸ› REPORTING BUGS πŸ›

Report bugs to <bug-shishi@gnu.org>. bestie if you find a bug, tell the GNU people, they wanna know 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. periodt πŸ’…


🌈 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 get that deep lore, bestie πŸ“šβœ¨


no cap: every flag, every arg, every return code above is exactly what the page said. the attitude is free, the facts are sacred 🫢

shishi version 1.0.3, page shishi_tkts_add_ccache_mem(3) β€” that's a wrap, mwah πŸ’‹πŸŒΈ