pskc_set_key_userid(3)
π pskc_set_key_userid β like, the libpskc glow-up you didn't know you needed
okay bestie, so this is a page from libpskc and honestly it's a short one, but it's important, so let's get into it π
β¨ NAME β¨
pskc_set_key_userid β the API function that sets the Key Userid value on your KeyPackage, no cap π
πΈ SYNOPSIS πΈ
#include <pskc.h>
void pskc_set_key_userid(pskc_key_t * key, const char * keyuserid);
that's it. that's the whole vibe. two args, zero return value, very demure π
π¦ ARGUMENTS π¦
pskc_key_t * keyβ apskc_key_thandle, which you get frompskc_get_keypackage(). this is your main character right here πconst char * keyuseridβ pointer to the key userid string you wanna set. literally just hand it over, she'll hold onto it π«Ά
π DESCRIPTION π
So what does it do? It sets the PSKC KeyPackage Key Userid value. That's the whole thing. Slay. β¨
but okay, here's the part where you actually need to pay attention, bestie, because this is the plot twist π
The pointer is stored in the container, not a copy of the data. So you must not deallocate the data before another call to this function, or before the last call to any function that uses the container.
read that again. she does not copy your string. she just remembers where it lives. so if you free() that thing too early, you're gonna have a bad time π keep it alive until the next call to this function or the last call to any function using the container, fr fr.
β SINCE β
2.2.0 β she's been iconic since 2.2.0, iykyk π
π REPORTING BUGS π
Found a bug? Don't suffer in silence, tell the people π£
- 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. (that's the legal version of "share the love, keep the receipt" π)
okay that's the whole page, you ate that π this lil gem comes to you courtesy of libpskc, version 2.6.15, and it's the pskc_set_key_userid(3) page β go forth and set those userids responsibly, bestie ππ§
π¦ 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