pskc_get_key_policy_pinencoding(3)

πŸ’– pskc_get_key_policy_pinencoding(3) πŸ’–

✨ NAME ✨

pskc_get_key_policy_pinencoding β€” an API function from libpskc that gets the PSKC KeyPackage Key Policy PINPolicy PINEncoding value. Bestie, it’s giving β€œread this one tiny field” energy. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

Include this header, then call it like so:

#include <pskc.h>

pskc_valueformat pskc_get_key_policy_pinencoding(pskc_key_t * key, int *
present);

πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_key_t * key β€” a pskc_key_t handle, from pskc_get_keypackage(). Your main-character key package, basically. πŸ”‘
  • int * present β€” output variable indicating whether data was provided or not. It’s the little β€œwas this even here?” bestie. πŸ‘€

🌸 DESCRIPTION 🌸

Get the PSKC KeyPackage Key Policy PINPolicy PINEncoding value. This attribute indicates the encoding of the PIN and MUST be one of the pskc_valueformat values. No cap, that’s a hard requirement β€” it has to be one of those values. 🚨

If present is non-NULL, it will be 0 if the field is not present or 1 if it was present. So it’s your lil presence check, and it understood the assignment. πŸ’…

⭐ RETURNS ⭐

an pskc_valueformat value ✨ β€” that’s the whole return vibe.

πŸ’Œ REPORTING BUGS πŸ’Œ

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. Yes, keep the notice, bestie β€” it’s the whole license vibe. πŸŽ€


footer shoutout: libpskc, version 2.6.15, page pskc_get_key_policy_pinencoding(3) β€” no date in this footer, so I’m not inventing one, periodt πŸ’€πŸ‘‘βœ¨

πŸ“¦ where this page comes from