pskc_set_device_model(3)
π pskc_set_device_model β the libpskc (that's the manual, bestie) glow-up for your device model
okay so real talk, this is a page from the libpskc manual and it's about one tiny little setter that does exactly one thing and does it slayfully. it's giving "small function, big responsibility" energy. β¨
πΈ NAME πΈ
pskc_set_device_model β the API function that sets the model name. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include <pskc.h>
void pskc_set_device_model(pskc_key_t * key, const char * model);
π ARGUMENTS π
pskc_key_t * keyβ apskc_key_thandle that you got from, like,pskc_add_keypackage()(or wherever else you scooped one up, iykyk).const char * modelβ a string holding the model name you wanna set. the name-name. the model moment. π
β¨ DESCRIPTION β¨
so what it does is set the PSKC KeyPackage DeviceInfo Model value. and what is that, you ask? it's the element that literally describes the model of the device β the manpage's own example is "one-button-HOTP-token-V1", which honestly ate. π
now here's the part where you gotta pay attention, bestie, because this is the plot twist π«Ά:
the pointer is stored in 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 using container. like, if you free that string early the whole thing goes π. no cap.
β SINCE β
2.2.0 β she's been iconic since 2.2.0, we stan a legacy. π
π REPORTING BUGS π
found a bug? don't suffer in silence, 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. (translation: go off, just keep the receipts. π§Ύβ¨)
and that's the whole page, babes π β this little rewrite was brought to you by libpskc version 2.6.15, same energy as always, no extra facts added, periodt. ππ«Ά
π¦ 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