pskc_set_version(3)

πŸ’– pskc_set_version(3) πŸ’–

okay so this is the libpskc manual page for pskc_set_version, bestie. It’s giving β€œtiny setter function, but the pointer lifetime rules are not a joke” energy. ✨

πŸ¦‹ NAME πŸ¦‹

pskc_set_version β€” API function. That’s the whole name section, no cap.

πŸ’… SYNOPSIS πŸ’…

#include <pskc.h>

void pskc_set_version(pskc_t * container, const char * version);

πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_t * container β€” a pskc_t handle, from pskc_init(). Your main character struct, basically.
  • const char * version β€” pointer to version string to set. Just the pointer, bestie, keep reading.

🌸 DESCRIPTION 🌸

Set the PSKC KeyContainer Version attribute. Normally this string is always "1.0" and a missing field is a syntax error according to the PSKC schema. So yeah, it’s not really a choose-your-own-adventure field. 🫢

The pointer is stored in container, not a copy of the data, so you must not deallocate the data before another call to this function or the last call to any function using container.

⚠️ bestie, this is the part to screenshot: it does not copy the string. You hand over the pointer, and the data has to stay alive until another call to this function or the last call to any function using container. Do not deallocate it too early. The lifetime is yours to manage, and getting it wrong is undefined-behaviour-adjacent in vibe. πŸ’€

⭐ SINCE ⭐

Since 2.2.0. Periodt.

😭 REPORTING BUGS 😭

Report bugs to <oath-toolkit-help@nongnu.org>.

libpskc home page: https://oath-toolkit.codeberg.page/

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

Copyright Β© 2009-2026 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.


okay that’s the whole page, bestie πŸ’– cute footer sign-off: source/version is libpskc 2.6.15, the page is pskc_set_version(3), and there’s no separate date printed on this footer to quote β€” byeee βœ¨πŸ¦‹

πŸ“¦ where this page comes from