The maximum is chosen from the default configuration of SoftHSMv2:
https://github.com/opendnssec/SoftHSMv2/blob/develop/CMakeLists.txt#L61
Signed-off-by: Daiki Ueno <ueno@gnu.org>
#endif
/* *INDENT-ON* */
-#define GNUTLS_PKCS11_MAX_PIN_LEN 32
+#define GNUTLS_PKCS11_MAX_PIN_LEN 256
/**
* gnutls_pkcs11_token_callback_t:
UPIN="$2"
SOPIN="$3"
NEWPIN=88654321
- LARGE_NEWPIN="1234123412341234123412341234123" #31 chars
- TOO_LARGE_NEWPIN="12341234123412341234123412341234" #32 chars
+ # 255 chars
+ LARGE_NEWPIN="\
+1234123412341234123412341234123412341234123412341234123412341234\
+1234123412341234123412341234123412341234123412341234123412341234\
+1234123412341234123412341234123412341234123412341234123412341234\
+123412341234123412341234123412341234123412341234123412341234123\
+"
+ # 256 chars
+ TOO_LARGE_NEWPIN="$LARGE_NEWPIN"4
echo -n "* Setting SO PIN... "
# Test admin PIN