Bump required minimum version of libfido2 to 1.5.0
Major distributions already have libfido2 >= 1.12.0. Let's bump the required minimum version to 1.5.0, which provides FIDO_ERR_UV_BLOCKED. Note, libfido2 1.5.0 was released on 2020-09-01. See also #38608.
This commit is contained in:
@@ -271,11 +271,9 @@ static int fido2_common_assert_error_handle(int r) {
|
||||
case FIDO_ERR_PIN_AUTH_BLOCKED:
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOWNERDEAD),
|
||||
"PIN of security token is blocked, please remove/reinsert token.");
|
||||
#ifdef FIDO_ERR_UV_BLOCKED
|
||||
case FIDO_ERR_UV_BLOCKED:
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOWNERDEAD),
|
||||
"Verification of security token is blocked, please remove/reinsert token.");
|
||||
#endif
|
||||
case FIDO_ERR_PIN_INVALID:
|
||||
return log_error_errno(SYNTHETIC_ERRNO(ENOLCK),
|
||||
"PIN of security token incorrect.");
|
||||
@@ -937,11 +935,9 @@ int fido2_generate_hmac_hash(
|
||||
if (r == FIDO_ERR_PIN_AUTH_BLOCKED)
|
||||
return log_notice_errno(SYNTHETIC_ERRNO(EPERM),
|
||||
"Token PIN is currently blocked, please remove and reinsert token.");
|
||||
#ifdef FIDO_ERR_UV_BLOCKED
|
||||
if (r == FIDO_ERR_UV_BLOCKED)
|
||||
return log_notice_errno(SYNTHETIC_ERRNO(EPERM),
|
||||
"Token verification is currently blocked, please remove and reinsert token.");
|
||||
#endif
|
||||
if (r == FIDO_ERR_ACTION_TIMEOUT)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(ENOSTR),
|
||||
"Token action timeout. (User didn't interact with token quickly enough.)");
|
||||
|
||||
Reference in New Issue
Block a user