mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-20 21:54:16 +01:00
pass cfg->debug to check_firmware_version() and let it use D macro
This commit is contained in:
parent
27d6a286d7
commit
a6ea0e7053
@ -461,7 +461,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (! check_firmware_version(yk, false, true)) {
|
||||
if (! check_firmware_version(yk, cfg->debug, true)) {
|
||||
DBG(("YubiKey does not support Challenge-Response (version 2.2 required)"));
|
||||
goto out;
|
||||
}
|
||||
|
4
util.c
4
util.c
@ -206,10 +206,10 @@ check_firmware_version(YK_KEY *yk, bool verbose, bool quiet)
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
printf("Firmware version %d.%d.%d\n",
|
||||
D(("YubiKey Firmware version: %d.%d.%d\n",
|
||||
ykds_version_major(st),
|
||||
ykds_version_minor(st),
|
||||
ykds_version_build(st));
|
||||
ykds_version_build(st)));
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user