diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-03-15 09:27:11 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-03-15 09:27:11 +0000 |
commit | 9728d1c2f49e437c044fe16bc1b3ae808f6e2a1e (patch) | |
tree | 6303575c32dfccbcb2924c2c86d162514399b322 /pam_sql/pam_mysql.c | |
parent | 7a1d93c4eb779380f90c11f4af4b477615b3e748 (diff) | |
download | pam-modules-9728d1c2f49e437c044fe16bc1b3ae808f6e2a1e.tar.gz pam-modules-9728d1c2f49e437c044fe16bc1b3ae808f6e2a1e.tar.bz2 |
Minor change
git-svn-id: file:///svnroot/pam-modules/trunk@81 56984be4-0537-0410-a56c-fcb268c96130
Diffstat (limited to 'pam_sql/pam_mysql.c')
-rw-r--r-- | pam_sql/pam_mysql.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pam_sql/pam_mysql.c b/pam_sql/pam_mysql.c index 5bf7306..9c161eb 100644 --- a/pam_sql/pam_mysql.c +++ b/pam_sql/pam_mysql.c @@ -188,14 +188,14 @@ mu_check_mysql_4x_password (const char *scrambled, const char *message) char to[2*SHA1_HASH_SIZE + 2]; /* stage 1: hash password */ - sha1_init_ctx (&sha1_context); - sha1_process_bytes (message, strlen (message), &sha1_context); - sha1_finish_ctx (&sha1_context, to); + gpam_sha1_init_ctx (&sha1_context); + gpam_sha1_process_bytes (message, strlen (message), &sha1_context); + gpam_sha1_finish_ctx (&sha1_context, to); /* stage 2: hash stage1 output */ - sha1_init_ctx (&sha1_context); - sha1_process_bytes (to, SHA1_HASH_SIZE, &sha1_context); - sha1_finish_ctx (&sha1_context, hash_stage2); + gpam_sha1_init_ctx (&sha1_context); + gpam_sha1_process_bytes (to, SHA1_HASH_SIZE, &sha1_context); + gpam_sha1_finish_ctx (&sha1_context, hash_stage2); /* convert hash_stage2 to hex string */ to[0] = '*'; @@ -282,8 +282,6 @@ check_md5_pass(const char *sqlpass, const char *userpass) return PAM_AUTH_ERR; } - - static int check_query_result(MYSQL *mysql, const char *pass) { |