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 β€” a pskc_key_t handle 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>. πŸ’Œ


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