* Version 3.1.0 (unreleased)
-** libgnutls: xxx
+** libgnutls: When decoding a PKCS #11 URL the pin-source field
+is assumed to be a file that stores the pin.
** API and ABI modifications:
No changes since last version.
}
init++;
+ p11_kit_pin_register_callback (P11_KIT_PIN_FALLBACK, p11_kit_pin_file_callback,
+ NULL, NULL);
+
if (flags == GNUTLS_PKCS11_FLAG_MANUAL)
return 0;
else if (flags == GNUTLS_PKCS11_FLAG_AUTO)
/* Check if a pinfile is specified, and use that if possible */
pinfile = p11_kit_uri_get_pinfile (info);
- if (pinfile != NULL)
+ if (pinfile != NULL && attempts == 0)
{
_gnutls_debug_log("pk11: Using pinfile to retrieve PIN\n");
return retrieve_pin_for_pinfile (pinfile, token_info, attempts, user_type, pin);