pskc_set_key_friendlyname(3)

πŸ’– pskc_set_key_friendlyname(3) πŸ’–

okay so bestie, welcome to libpskc β€” this is the pskc_set_key_friendlyname page and honestly? it's a little cutie. short, sweet, gets the job done. let's get into it ✨


🌸 NAME 🌸

pskc_set_key_friendlyname β€” the API function that gives your key a lil nickname πŸŽ€


✨ SYNOPSIS ✨

#include <pskc.h>

void pskc_set_key_friendlyname(pskc_key_t * key, const char * fname);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pskc_key_t * key β€” a pskc_key_t handle, and you get it from pskc_get_keypackage(). that's the one, that's your main character πŸ”₯
  • const char * fname β€” a pointer to the friendly name string you wanna set. literally just point at it and go πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

So what does it do? It sets the PSKC KeyPackage Key Friendlyname value. iconic, no notes πŸ‘‘

But here's the part where you gotta pay attention, bestie, because this is the plot twist 😭 β€” the pointer is stored in the container, not a copy of the data. so like, it is not doing a deep copy for you. you must not deallocate the data before another call to this function, or before the last call to any function that uses the container. fr fr, don't free it early or you're gonna have a bad time πŸ’€

🫢 translation: the container is holding onto your pointer, not its own copy. keep that string alive until you're done with it!

⭐ SINCE ⭐

2.2.0 β€” she's been around a while, a seasoned queen 🌈


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? spill the tea 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. (that's the license, bestie β€” keep the notice, keep it legal πŸ’–)


and that's the whole page! no cap, that's everything 🌸 this gem comes to you from libpskc version 2.6.15, dated right there in the footer of the original, and it's been serving friendlyname realness since 2.2.0. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from