pskc_get_device_userid(3)

πŸ’… pskc_get_device_userid(3)

okay so bestie, this one lives in the libpskc manual, section 3 (that's the "these are functions, go call them" section, iykyk). It's a tiny little getter β€” like, one job, does it well, main character energy honestly. ✨


✨ NAME ✨

pskc_get_device_userid β€” the API function that grabs the DeviceInfo Userid off a PSKC KeyPackage. πŸŽ€


🌸 SYNOPSIS 🌸

#include <pskc.h>

const char * pskc_get_device_userid(pskc_key_t * key);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pskc_key_t * key β€” a pskc_key_t handle, which you get from pskc_get_keypackage(). That's the whole vibe: hand her the handle, she hands you the string. 🫢

πŸ’– DESCRIPTION πŸ’–

Get the PSKC KeyPackage DeviceInfo Userid value. Bestie, this is literally just the identifier for the user the device is associated with β€” like, whose phone is this token on, that kind of thing. No cap, that's it. πŸ’…


⭐ RETURNS ⭐

a constant string (must not be deallocated) holding the content, or NULL if not set.

okay so important: it's constant, right? So do not free it, do not deallocate it, do not touch it with your little cleanup routines. It's not yours, it's hers. Just read it and move on. πŸ™ˆ And if it comes back NULL, that just means nothing was set β€” not a crisis, bestie, just an absence. πŸ“

😭 REPORTING BUGS 😭

Found a bug? iconic of you for noticing. Report bugs to <oath-toolkit-help@nongnu.org>.


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.


so that's the whole page, bestie β€” short, sweet, and absolutely slaying. go get that userid. πŸ’œ

✨ this was page pskc_get_device_userid(3) from libpskc, version 2.6.15 β€” mwah, catch you in the next one πŸ’…πŸŽ€

πŸ“¦ where this page comes from