1pskc_get_key_policy_pinminlength(3) libpskcpskc_get_key_policy_pinminlength(3)
2
3
4

NAME

6       pskc_get_key_policy_pinminlength - API function
7

SYNOPSIS

9       #include <pskc.h>
10
11       uint32_t   pskc_get_key_policy_pinminlength(pskc_key_t  *  key,  int  *
12       present);
13

ARGUMENTS

15       pskc_key_t * key
16                   a pskc_key_t handle, from pskc_get_keypackage().
17
18       int * present
19                   output variable indicating whether  data  was  provided  or
20                   not.
21

DESCRIPTION

23       Get  the  PSKC  KeyPackage  Key Policy PINPolicy MinLength value.  This
24       attribute indicates the minimum length of a PIN that can be set to pro‐
25       tect  the associated key.  It MUST NOT be possible to set a PIN shorter
26       than this value.  If the 'PINFormat' attribute  is  set  to  'DECIMAL',
27       'HEXADECIMAL',  or  'ALPHANUMERIC',  this value indicates the number of
28       digits/ characters.  If the 'PINFormat' attribute is set to 'BASE64' or
29       'BINARY',  this  value  indicates  the number of bytes of the unencoded
30       value.
31
32       If present is non-NULL, it will be 0 if the field is not present  or  1
33       if it was present.
34

RETURNS

36       an integer holding the content.
37

REPORTING BUGS

39       Report  bugs  to  <oath-toolkit-help@nongnu.org>.   libpskc  home page:
40       http://www.gnu.org/software/libpskc/ General help using  GNU  software:
41       http://www.gnu.org/gethelp/
42
44       Copyright © 2012-2020 Simon Josefsson.
45       Copying  and  distribution  of this file, with or without modification,
46       are permitted in any medium  without  royalty  provided  the  copyright
47       notice and this notice are preserved.
48
49
50
51libpskc                              2.6.6 pskc_get_key_policy_pinminlength(3)
Impressum