Skip to content
This repository has been archived by the owner on Oct 11, 2018. It is now read-only.

Commit

Permalink
fixing issue where usernames in authy-vpn.conf are ignored if case is…
Browse files Browse the repository at this point in the history
… not exact
  • Loading branch information
robbie committed May 13, 2015
1 parent a133c85 commit 84cd762
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/authy_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#define snprintf _snprintf
#endif

#ifdef WIN32
#define strcasecmp _stricmp
#endif

// Description
//
// Checks if pszAuthyId is a valid authyId
Expand Down Expand Up @@ -191,7 +195,7 @@ getAuthyIdAndCommonName(__out char **ppszAuthyId,
pch = strtok (NULL, " \t"); //Go to the next token
i++;
}
if(0 == strcmp(columns[0], pszUsername)){
if(0 == strcasecmp(columns[0], pszUsername)){
trace(DEBUG, __LINE__, "[Authy] Found column for pszUsername=%s column is %s\n", pszUsername, line);
break;
}
Expand Down

0 comments on commit 84cd762

Please sign in to comment.