Skip to content

Commit

Permalink
Fixing undefined symbol: make_scrambled_password
Browse files Browse the repository at this point in the history
  • Loading branch information
John Stewart authored and John Stewart committed Nov 4, 2016
1 parent 2decf05 commit 2f6837b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pam_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -2885,10 +2885,10 @@ static pam_mysql_err_t pam_mysql_check_passwd(pam_mysql_ctx_t *ctx,
if (ctx->use_323_passwd) {
make_scrambled_password_323(buf, passwd);
} else {
make_scrambled_password(buf, passwd);
my_make_scrambled_password(buf, passwd, strlen(passwd));
}
#else
make_scrambled_password(buf, passwd);
my_make_scrambled_password(buf, passwd, strlen(passwd));
#endif

vresult = strcmp(row[0], buf);
Expand Down Expand Up @@ -3130,10 +3130,10 @@ static pam_mysql_err_t pam_mysql_update_passwd(pam_mysql_ctx_t *ctx, const char
if (ctx->use_323_passwd) {
make_scrambled_password_323(encrypted_passwd, new_passwd);
} else {
make_scrambled_password(encrypted_passwd, new_passwd);
my_make_scrambled_password(encrypted_passwd, new_passwd, strlen(passwd));
}
#else
make_scrambled_password(encrypted_passwd, new_passwd);
my_make_scrambled_password(encrypted_passwd, new_passwd, strlen(passwd));
#endif
break;

Expand Down

0 comments on commit 2f6837b

Please sign in to comment.