pskc_get_key_profileid(3)

πŸ’… pskc_get_key_profileid(3) β€” like, the libpskc manual, bestie

Okay so real talk: this is a page from libpskc, and it's about one tiny little getter function. It's short, it's sweet, and it absolutely slaps once you get what it's doing. Let's go πŸ’–


🌸 NAME 🌸

pskc_get_key_profileid β€” the API function. That's it, that's the whole vibe. It's literally just here to fetch one lil' string for you πŸŽ€


✨ SYNOPSIS ✨

#include <pskc.h>

const char * pskc_get_key_profileid(pskc_key_t * key);

Like, include the header, call the function, get a string back. No cap, that's the whole flow πŸ¦‹


🫢 ARGUMENTS 🫢

  • pskc_key_t * key β€” a pskc_key_t handle. And where do you get one of those, you ask? From pskc_get_keypackage(). That's your source, bestie, don't forget it πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

Get the PSKC KeyPackage Key KeyProfileId value. Yep β€” that's the whole description. It's giving "short and iconic" and honestly? We love a function that knows exactly what it is πŸ”₯


🌈 RETURNS 🌈

You get back a constant string holding the content. And this is the important part, so listen up πŸ™ˆ:

You must not deallocate it. It's not yours, don't free it, don't touch it with free(), just read it and move on, okay?

And if it's not set? You get NULL. That's the vibe check result β€” NULL means "nope, nothing here" πŸ’€


😭 REPORTING BUGS 😭

Found a bug? Spill the tea to <oath-toolkit-help@nongnu.org> and they'll handle it πŸ“§


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, share it, just keep the receipts ✨)


And that's the whole page, bestie! This one's from libpskc, version 2.6.15, and it's the pskc_get_key_profileid(3) manual page. Read it, love it, don't free the string πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from