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 β€” a pskc_key_t handle, which you get from pskc_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 πŸ“£

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