pskc_set_key_policy_pinencoding(3)
π pskc_set_key_policy_pinencoding(3) β the libpskc glow-up
okay so bestie, this one lives in the libpskc manual (section 3, dev vibes only) and it's literally the setter for the PIN encoding on a key policy. tiny function, big "I control the encoding" energy. let's get into it π«Ά
β¨ NAME β¨
pskc_set_key_policy_pinencoding β an API function, no cap. it sets stuff. that's the whole name, that's the whole job π
πΈ SYNOPSIS πΈ
#include <pskc.h>
void pskc_set_key_policy_pinencoding(pskc_key_t * key, pskc_valueformat
pinencoding);
so you pull in <pskc.h> and then you call it β returns void, so no "did it work" moment, she just does her thing and leaves π
π ARGUMENTS π
pskc_key_t * keyβ apskc_key_thandle. and where do you get one of those? frompskc_get_keypackage(), bestie, that's the plug β¨pskc_valueformat pinencodingβ thepskc_valueformatencoding you want to set. that's it, that's the arg π
π DESCRIPTION π
okay so here's the tea π: this sets the PSKC KeyPackage Key Policy PINPolicy PINEncoding value. long name, iconic function.
and what does that attribute even mean? it indicates the encoding of the PIN, and it MUST be one of the pskc_valueformat values. like, not optional, not "eh close enough", it HAS to be one of those. it's giving strict parents π but honestly? respect.
so:
- you got a key handle β
- you pick a
pskc_valueformatβ - you set the PINEncoding β
- slay π
lowkey important: the MUST is doing real work there. don't hand it a random number and hope for the best, fr fr π
β SINCE β
2.2.0 β so she's been around a minute. vintage. iconic. π
π₯ REPORTING BUGS π₯
found a bug? don't suffer in silence, tell the people:
- bugs go to <oath-toolkit-help@nongnu.org> π§
- libpskc home page: https://oath-toolkit.codeberg.page/
- general help using GNU software: http://www.gnu.org/gethelp/
they're literally waiting to hear from you, bestie π«Ά
π 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.
(translation: keep the notice, keep the vibes, no money required β¨)
π and that's the page!! this little gem is from libpskc, version 2.6.15 β shoutout to the version string, she ate. go set some PIN encodings, bestie, you got this πππ¦
π¦ 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