diff options
author | monty@narttu.mysql.fi <> | 2007-01-27 03:46:45 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2007-01-27 03:46:45 +0200 |
commit | 8a80e36ac3facdfba626fd758b6e4490d3ea9ddf (patch) | |
tree | 7a54aa50f6bf549d049cd400fe056d244cfc7eb8 /sql/password.c | |
parent | c022454e7c5690330ed78664443e65b3511649b8 (diff) | |
parent | 120e3f5ee1a5f2d62f6a4ff10db0797c5ac42287 (diff) | |
download | mariadb-git-8a80e36ac3facdfba626fd758b6e4490d3ea9ddf.tar.gz |
Merge mysql.com:/home/my/mysql-5.0
into mysql.com:/home/my/mysql-5.1
Merge of 'remove compiler warnings when using -Wshadow'
Diffstat (limited to 'sql/password.c')
-rw-r--r-- | sql/password.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/password.c b/sql/password.c index 0e4bd6347e2..1ff67888ea4 100644 --- a/sql/password.c +++ b/sql/password.c @@ -472,7 +472,7 @@ scramble(char *to, const char *message, const char *password) */ my_bool -check_scramble(const char *scramble, const char *message, +check_scramble(const char *scramble_arg, const char *message, const uint8 *hash_stage2) { SHA1_CONTEXT sha1_context; @@ -485,7 +485,7 @@ check_scramble(const char *scramble, const char *message, mysql_sha1_input(&sha1_context, hash_stage2, SHA1_HASH_SIZE); mysql_sha1_result(&sha1_context, buf); /* encrypt scramble */ - my_crypt((char *) buf, buf, (const uchar *) scramble, SCRAMBLE_LENGTH); + my_crypt((char *) buf, buf, (const uchar *) scramble_arg, SCRAMBLE_LENGTH); /* now buf supposedly contains hash_stage1: so we can get hash_stage2 */ mysql_sha1_reset(&sha1_context); mysql_sha1_input(&sha1_context, buf, SHA1_HASH_SIZE); @@ -495,7 +495,8 @@ check_scramble(const char *scramble, const char *message, /* - Convert scrambled password from asciiz hex string to binary form. + Convert scrambled password from asciiz hex string to binary form. + SYNOPSIS get_salt_from_password() res OUT buf to hold password. Must be at least SHA1_HASH_SIZE |