pskc_output(3)

πŸ¦‹ NAME πŸ¦‹

pskc_output β€” API function. This is the libpskc manual, bestie, and we're about to make the serialization tea make sense πŸ’–

✨ SYNOPSIS ✨

#include <pskc.h>

int pskc_output(pskc_t * container, pskc_output_formats_t format, char
       ** out, size_t * len);

πŸŽ€ ARGUMENTS πŸŽ€

Okay so here's the cast β€” every single one matters, no skipping:

  • pskc_t * container β€” a pskc_t handle, from pskc_init().
  • pskc_output_formats_t format β€” an pskc_output_formats_t enumeration type indicating format. Yes, it's an enum situation, and it's telling us the format πŸ’…
  • char ** out β€” pointer to output variable holding newly allocated string.
  • size_t * len β€” pointer to output variable hold length of *out.

πŸ’… DESCRIPTION πŸ’…

Convert PSKC data to a serialized string of the indicated type. Usually this is used to convert the PSKC data to some human readable form. So like β€” you've got PSKC data, you pick the format, and it hands you back a serialized string. Most of the time you're doing this because you want a human-readable version. Slay ✨

🌈 RETURNS 🌈

PSKC_OK on success, or an error code. That's the whole vibe check β€” success gives you PSKC_OK, otherwise you get an error code 😭

🫢 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/

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 legal tea, bestie β€” keep the notice and you're good 🫢


Footer check, bestie: this is pskc_output(3) from libpskc version 2.6.15, and the date energy is the copyright range 2009-2026. Byeee β€” go serialize something cute πŸ’–βœ¨

πŸ“¦ where this page comes from