pskc_get_device_model(3)

πŸ’… pskc_get_device_model(3) β€” the libpskc glow-up

okay bestie so this is a page from libpskc (yes, that libpskc), and it's called pskc_get_device_model(3). it's short, it's sweet, it's giving "small function, big main character energy" πŸŽ€ read it and you're done, periodt.


✨ NAME ✨

pskc_get_device_model β€” literally just an API function, that's the whole vibe πŸ¦‹

✨ SYNOPSIS ✨

#include <pskc.h>

const char * pskc_get_device_model(pskc_key_t * key);

🌸 ARGUMENTS 🌸

  • pskc_key_t * key β€” a pskc_key_t handle, and you get it from pskc_get_keypackage(). that's the source, no cap 🫢

πŸ’– DESCRIPTION πŸ’–

so the way this works: you call it, and it gets you the PSKC KeyPackage DeviceInfo Model value. lowkey iconic.

and what even is that? it's the element that describes the model of the device β€” like, for example, "one-button-HOTP-token-V1". that's the actual example, i'm not making it up 😭 it's just telling you what kind of little guy this device is. vibe check passed πŸ‘‘

⭐ RETURNS ⭐

it hands you back a constant string holding the content β€” and listen to me: must not be deallocated 🚨 like do NOT free it, don't touch the memory management, hands off, it's not yours.

or, if it's not set, you get NULL. that's it, that's the return 🫠

πŸ› REPORTING BUGS πŸ›

found a bug? first of all, rude, but also β€” report it 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. slay, genuinely πŸ’œ


so yeah, that's the whole page 🧚 it's from libpskc, version 2.6.15, and this little beauty is filed under pskc_get_device_model(3). go forth and read your device models, bestie β€” you're gonna do amazing πŸŒˆπŸ’…βœ¨

πŸ“¦ where this page comes from