pskc_get_version(3)

πŸ’… pskc_get_version(3) β€” the libpskc glow-up

okay so bestie, welcome to the pskc_get_version(3) page from libpskc β€” yes, that libpskc, the one your build system keeps whispering about. sit down, grab a strawberry πŸ“, we're gonna read a manpage together and it's gonna be adorable.


✨ NAME ✨

pskc_get_version β€” the little function that spills the tea on your container's version, and honestly? it's giving one-job icon. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <pskc.h>

const char * pskc_get_version(pskc_t * container);

πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_t * container β€” a pskc_t handle, and listen, it has to come from pskc_init(). that's the whole vibe check for this parameter, no cap. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it gets the PSKC KeyContainer Version attribute. that's it. that's the function. main character energy, minimal effort. ✨

and lowkey here's the fun part: normally this string is always "1.0". like, always always. and if the field is missing? that's a syntax error according to the PSKC schema β€” not me being dramatic, that's literally the spec. πŸ’€ so yeah, a missing version is not a "quirky little gap", it's a whole problem.


πŸ’– RETURNS πŸ’–

it hands you back a constant string holding the content β€” and bestie, must not be deallocated, do not free it, do not touch it with free(), it is not yours, it's a borrow not a gift. πŸ™ˆ

or, if it's not set: NULL. that's it, that's the return value. ⭐


πŸ”₯ REPORTING BUGS πŸ”₯

found a bug? okay first of all, relatable, second of all β€” report it to <oath-toolkit-help@nongnu.org>.

go off, tell them everything. πŸ›


Copyright Β© 2009-2026 Simon Josefsson.

and the license tea, verbatim-facts-only edition: 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. iconic of them honestly. πŸŽ€


ngl if you're still here, you're a real one. go call the function, get your "1.0", and remember: not yours, don't free it. 🧚

and that's the whole page, bestie β€” brought to you by libpskc 2.6.15, page pskc_get_version(3), signed off with a little bow πŸŽ€ mwah πŸ’‹

πŸ“¦ where this page comes from