Skip to content

Commit

Permalink
Allow concatenating u2f_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMD committed Oct 10, 2023
1 parent 7ae4196 commit d278746
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,8 @@ static int parse_native_format(const cfg_t *cfg, const char *username,
if (s_user && strcmp(username, s_user) == 0) {
debug_dbg(cfg, "Matched user: %s", s_user);

// only keep last line for this user
for (i = 0; i < *n_devs; i++) {
reset_device(&devices[i]);
}
*n_devs = 0;

i = 0;
// keep all lines each user, concatenating later auth patterns
i = *n_devs;
while ((s_credential = strtok_r(NULL, ":", &saveptr))) {
if ((*n_devs)++ > cfg->max_devs - 1) {
*n_devs = cfg->max_devs;
Expand Down

0 comments on commit d278746

Please sign in to comment.