pskc_get_key_policy_keyusages(3)

✨ NAME ✨

pskc_get_key_policy_keyusages β€” okay so this is the libpskc API function that gets the PSKC KeyPackage Key Policy KeyUsage values, and it’s lowkey the main character of this manual page πŸ’–.

🌸 SYNOPSIS 🌸

#include <pskc.h>

int pskc_get_key_policy_keyusages(pskc_key_t * key, int * present);

πŸ’… ARGUMENTS πŸ’…

  • pskc_key_t * key β€” a pskc_key_t handle, from pskc_get_keypackage(). That’s the key package energy you’re working with 🫢.
  • int * present β€” output variable indicating whether data was provided or not. It’s giving β€œtell me if the field showed up” vibes, fr fr.

πŸ¦‹ DESCRIPTION πŸ¦‹

Get the PSKC KeyPackage Key Policy KeyUsage values, bestie. The element puts constraints on the intended usage of the key. The recipient of the PSKC document MUST enforce the key usage β€” like, not optional, periodt πŸ”₯.

If present is non-NULL, it will be 0 if the field is not present or 1 if it was present. No cap, that’s the whole vibe check ✨.

πŸŽ€ RETURNS πŸŽ€

an integer holding a set of pskc_keyusage values ORed together. Iconic bitmask behavior, iykyk πŸ’….

πŸ› 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.


Cute sign-off, bestie: this footer energy is libpskc 2.6.15, page pskc_get_key_policy_keyusages(3) β€” no date listed on the footer, just timeless icon vibes πŸ’œ.

πŸ“¦ where this page comes from