pskc_get_key_data_secret(3)

hiii bestie πŸ’– welcome to the libpskc manual page for pskc_get_key_data_secret(3) β€” yes, the whole page is about this one function, and it's lowkey a main character. Let's go. πŸ¦‹

🌸 NAME 🌸

pskc_get_key_data_secret β€” it's an API function. Short name, big "get the secret" energy. Slay. ✨

✨ SYNOPSIS ✨

#include <pskc.h>

const char * pskc_get_key_data_secret(pskc_key_t * key, size_t * len);

πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_key_t * key β€” a pskc_key_t handle, from pskc_get_keypackage(). That's your key, babe. πŸ”‘ (handle acquired, we love to see it)
  • size_t * len β€” pointer to an output variable with the length of the returned data. It's where the size info goes. πŸ“ write it out, bestie

πŸ’… DESCRIPTION πŸ’…

Get the PSKC KeyPackage Key Data Secret value. πŸ—οΈβœ¨ That's the whole quest. It's giving "secret value retrieval, but make it API."

If len is not set, the caller can only use the returned value for comparison against NULL to check whether the field is present or not. No length means no using the returned content beyond that NULL check β€” just "is this thing here or not?" energy. πŸ‘€

πŸ”₯ RETURNS πŸ”₯

A constant string (must not be deallocated) holding the content of length *len, or NULL if not set. 🫢

Vibe check: do not free it, bestie β€” that string is borrowed and it's staying that way. πŸ’€

😭 REPORTING BUGS 😭

Spotted a bug? 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/. Go get that help, bestie. 🫢

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. So yes: copy it, distribute it, modify it or don't, any medium, no royalty β€” just keep the copyright notice and this notice intact. Periodt. ✨


okay that's the page, bestie πŸ’… β€” source/version is libpskc 2.6.15, and the footer's page name is pskc_get_key_data_secret(3). The footer has no date listed, so I'm not inventing one; mwah. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from