pskc_set_key_profileid(3)

okay so bestie, welcome to the libpskc pskc_set_key_profileid(3) page β€” yes, the whole thing is about setting one tiny string and not letting it get freed too early πŸ’…βœ¨

✨ NAME ✨

pskc_set_key_profileid β€” API function. That’s the name, that’s the game, and the libpskc manual name is folded right in here so you know exactly where you are πŸŽ€

🌸 SYNOPSIS 🌸

#include <pskc.h>

void pskc_set_key_profileid(pskc_key_t * key, const char * profileid);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pskc_key_t * key β€” a pskc_key_t handle, from pskc_get_keypackage().
  • const char * profileid β€” pointer to the profileid string to set.

πŸ’– DESCRIPTION πŸ’–

Okay so this function sets the PSKC KeyPackage Key KeyProfileId value. That’s the assignment, and it ate πŸ’…

But here’s the big red flag warning: 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 the last call to any function using container. No cap β€” that pointer is not yours to free on your own schedule, bestie 🫢

⭐ SINCE ⭐

2.2.0 β€” this API has been doing its thing since version 2.2.0, periodt ✨

πŸ› REPORTING BUGS πŸ›

Report bugs 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 Β© 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.

Legally iconic, honestly πŸ’œ


signing off from the libpskc 2.6.15 edition of pskc_set_key_profileid(3) β€” the footer didn’t list a date, so I’m not making one up, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from