1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2024-11-29 00:24:11 +01:00

whitespace

This commit is contained in:
Fredrik Thulin 2011-04-11 14:49:02 +02:00
parent 7923496375
commit 1d62f8d48b
2 changed files with 8 additions and 8 deletions

12
util.c
View File

@ -142,7 +142,7 @@ int challenge_response(YK_KEY *yk, int slot,
if (res_size < sizeof(64 + 16))
return 0;
memset(response, 0, sizeof(response));
if (verbose) {
@ -198,10 +198,10 @@ get_user_challenge_file(YK_KEY *yk, const char *chalresp_path, const char *usern
* which therefor can't be encrypted. If an encrypted home directory is used,
* the option chalresp_path can be used to point to a system-wide directory.
*/
const char *filename; /* not including directory */
unsigned int serial = 0;
if (! yk_get_serial(yk, 0, 0, &serial)) {
D (("Failed to read serial number (serial-api-visible disabled?)."));
if (! chalresp_path)
@ -211,14 +211,14 @@ get_user_challenge_file(YK_KEY *yk, const char *chalresp_path, const char *usern
} else {
/* We have serial number */
int res = asprintf (&filename, "%s-%i", chalresp_path == NULL ? "challenge" : username, serial);
if (res < 1)
filename = NULL;
}
if (filename == NULL)
return 0;
return get_user_cfgfile_path (chalresp_path, filename, username, fn);
}

View File

@ -52,7 +52,7 @@ const char *usage =
"\n"
"\t-1 Send challenge to slot 1. This is the default.\n"
"\t-2 Send challenge to slot 2.\n"
"\t-A action What to do.\n"
"\t-A action What to do.\n"
"\n"
"\t-v verbose\n"
"\t-h help (this text)\n"
@ -111,7 +111,7 @@ parse_args(int argc, char **argv,
return 0;
}
}
return 1;
}