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