pskc_get_key_policy_pinmaxlength(3)
β¨ pskc_get_key_policy_pinmaxlength(3) β¨
okay bestie, this is a libpskc manual page, and it's here to explain one very specific getter. It's giving βsmall function, extremely specific job,β and honestly? iconic.
πΈ NAME πΈ
pskc_get_key_policy_pinmaxlength β API function
π¦ SYNOPSIS π¦
#include <pskc.h>
uint32_t pskc_get_key_policy_pinmaxlength(pskc_key_t * key, int *
present);
π ARGUMENTS π
pskc_key_t * keyβ apskc_key_thandle, and you get it frompskc_get_keypackage(). That's the source, bestie.int * presentβ an output variable indicating whether data was provided or not. It's the little yes/no messenger.
π₯ DESCRIPTION π₯
Okay so this function gets the PSKC KeyPackage Key Policy PINPolicy MaxLength value. Which is a mouthful, but it's literally the maximum length of a PIN that can be set to protect this key.
π¨ Important: it MUST NOT be possible to set a PIN longer than this value. That's not a vibe suggestion, that's a hard requirement.
Now the format math, because it changes what βlengthβ means:
- If the
'PINFormat'attribute is set to'DECIMAL','HEXADECIMAL', or'ALPHANUMERIC', this value indicates the number of digits/characters. - If the
'PINFormat'attribute is set to'BASE64'or'BINARY', this value indicates the number of bytes of the unencoded value.
Also, if present is non-NULL, it will be 0 if the field is not present or 1 if it was present. The way that little pointer just tells you what's up? Obsessed.
π RETURNS π
It returns an integer holding the content. That's the whole return, no plot twist.
π REPORTING BUGS π
Found a bug? Don't suffer in silence, bestie β report it 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.
And that's the tea, bestie. This page is signed off from libpskc 2.6.15 β that's the source/version from the footer. The footer didn't give a separate date, so no invented date energy here, periodt. π β¨
π¦ 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