pskc_get_key_policy_pinusagemode(3)

πŸ’… pskc_get_key_policy_pinusagemode(3) β€” the libpskc page, bestie edition ✨

okay so real talk, this one lives in libpskc (that's the manual it's from, iykyk) and it's honestly such a tiny little getter, but it's important okay. it's giving "small but mighty" 🌸


✨ NAME ✨

pskc_get_key_policy_pinusagemode β€” literally the API function, that's it, that's the whole name πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pskc.h>

pskc_pinusagemode pskc_get_key_policy_pinusagemode(pskc_key_t * key, int
* present);

like, include the header first, always πŸ’…


🌸 ARGUMENTS 🌸

  • pskc_key_t * key β€” a pskc_key_t handle, and you get it from pskc_get_keypackage(). no cap, that's where it comes from 🫢
  • int * present β€” the output variable that tells you whether the data was provided or not. very "receipts" of it tbh πŸ“‹

πŸ’– DESCRIPTION πŸ’–

Get the PSKC KeyPackage Key Policy PINPolicy PINUsageMode value. it's a mandatory attribute (yes mandatory, no skipping πŸ™ˆ) and it indicates the way the PIN is used during the usage of the key.

and if present is non-NULL, it will be 0 if the field is not present or 1 if it was present. literally a vibe check in integer form ✨


πŸ”₯ RETURNS πŸ”₯

an pskc_pinusagemode value. that's the whole return, slay πŸ‘‘


😭 REPORTING BUGS 😭

found a bug? bestie, report it to oath-toolkit-help@nongnu.org πŸ“§


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. fr fr, just keep the notice 🫢


reminder: present can be NULL and that's fine, but if it's not, it's 0 or 1 and nothing else. no inventing numbers, bestie πŸ’€

and that's the page!! this one's from libpskc 2.6.15, mwah πŸ’‹ go get those PIN usage modes, you're gonna ate πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from