Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict for c++ keyword #24

Closed
wjx0912 opened this issue Jun 2, 2016 · 0 comments
Closed

conflict for c++ keyword #24

wjx0912 opened this issue Jun 2, 2016 · 0 comments

Comments

@wjx0912
Copy link

wjx0912 commented Jun 2, 2016

the word 'try' is keyword of c++, i modify it and now compile ok:

static int pass_matches(const char _pass, const char _try)
{
int des;
if ((des = !strncasecmp(pass, DES_PREFIX, sizeof(DES_PREFIX)-1)))
pass += sizeof(DES_PREFIX)-1;

ifndef WIN32

/*
 * TODO - find a small crypt(3) function for use on windows
 */
if (des || !strncmp(pass, MD5_PREFIX, sizeof(MD5_PREFIX)-1))
    **try** = crypt(**try**, pass);

endif

return !strcmp(pass, **try**);

}

@wjx0912 wjx0912 closed this as completed Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant