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 apskc_key_tand you get it frompskc_get_keypackage(). that's the sourcing, that's the vibe check, don't skip it πpskc_pinusagemode pinusagemodeβ the actualpskc_pinusagemodevalue 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 π
- 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. π (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
- 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