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β apskc_thandle, frompskc_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 π
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
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms