pskc_set_key_policy_pinusagemode(3)

πŸ’… pskc_set_key_policy_pinusagemode β€” the libpskc glow-up

okay so bestie, real talk: this is a libpskc function page, and the function is pskc_set_key_policy_pinusagemode. yes it's a mouthful. yes you're gonna say it out loud once and then just point at it. we move πŸ’…


✨ SYNOPSIS ✨

#include <pskc.h>

void pskc_set_key_policy_pinusagemode(pskc_key_t * key,
pskc_pinusagemode pinusagemode);

literally that's it. she's a setter. she sets. no return value, no drama (the return type is void, we love a queen with nothing to prove 🫢).


πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_key_t * key β€” your handle, bestie. it's a pskc_key_t and you get it from pskc_get_keypackage(). that's the sourcing, that's the vibe check, don't skip it πŸ’–
  • pskc_pinusagemode pinusagemode β€” the actual pskc_pinusagemode value you're setting. that's the whole point of the function. that's the main character ✨

🌸 DESCRIPTION 🌸

okay so here's what's happening πŸ‘‘

This sets the PSKC KeyPackage Key Policy PINPolicy PINUsageMode value. say it with me. it's a lot of words but they're all doing their job, no filler, no fluff.

And this attribute? it's mandatory. not optional, not "if you feel like it", not "when the stars align". mandatory mandatory. and what does it do? it indicates the way the PIN is used during the usage of the key. that's the whole thing. the usage mode of the PIN, in the usage of the key. iconic. it's giving "read the label". periodt πŸ’…

no hidden lore here β€” the manpage says exactly this and nothing more, so I'm not about to invent extra behaviour for you. fr fr πŸ™ˆ

⭐ SINCE ⭐

2.2.0 β€” she's been around, she's established, she's not new here πŸ‘‘


πŸ’€ REPORTING BUGS πŸ’€

found something cursed? report bugs to <oath-toolkit-help@nongnu.org>. like, actually email them, don't just scream into the group chat 😭


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 that's the actual license text, don't come for me, it's a slay license, it's basically "do what you want, just keep the receipt" 🧚)


and that's the page, bestie πŸ¦‹ this one shipped with libpskc 2.6.15 β€” go set some PIN usage modes, you absolute legend πŸ’œπŸ“

πŸ“¦ where this page comes from