pskc\_set\_key\_policy\_pinmaxfailedattempts(3) libpskc pskc\_set\_key\_policy\_pinmaxfailedattempts(3)

# [NAME](#NAME)

pskc\_set\_key\_policy\_pinmaxfailedattempts - API function

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;pskc.h&gt;**

**void pskc\_set\_key\_policy\_pinmaxfailedattempts(pskc\_key\_t * key, uint32\_t attempts);**

# [ARGUMENTS](#ARGUMENTS)

[pskc\_key\_t * key](#pskc_key_t)

a **pskc\_key\_t** handle, from **pskc\_get\_keypackage()**.

[uint32\_t attempts](#uint32_t)

number of attempts to set.

# [DESCRIPTION](#DESCRIPTION)

Set the PSKC KeyPackage Key Policy PINPolicy MaxFailedAttempts value. This attribute indicates the maximum number of times the PIN may be entered wrongly before it MUST NOT be possible to use the key anymore (typical reasonable values are in the positive integer range of at least 2 and no more than 10).

# [SINCE](#SINCE)

2.2.0

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to &lt;oath-toolkit-help@nongnu.org&gt;. libpskc home page: https://www.nongnu.org/oath-toolkit/ General help using GNU software: http://www.gnu.org/gethelp/

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2012-2020 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.

2.6.12-dirty libpskc

---

Document: pskc_set_key_policy_pinmaxfailedattempts(3) from oath-toolkit 2.6.12-r13 (Chainguard OS)
Source: https://gitlab.com/oath-toolkit/oath-toolkit.git
