Permalink
Browse files

Fixing undefined symbol: make_scrambled_password

  • Loading branch information...
1 parent 2decf05 commit 2f6837b5fb8ef4f5d8a561f3bf82b36cc79e77f4 John Stewart committed Nov 4, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 pam_mysql.c
View
@@ -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);
@@ -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;

0 comments on commit 2f6837b

Please sign in to comment.