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β apskc_key_thandle, and you get it frompskc_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> π
- 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. 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
- 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