1
0
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:
Klas Lindfors 2016-02-17 08:46:02 +01:00
parent 27d6a286d7
commit a6ea0e7053
2 changed files with 3 additions and 3 deletions

View File

@ -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
View File

@ -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);
}