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β apskc_key_thandle, frompskc_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 π
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
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms