diff options
author | Sergei Golubchik <sergii@pisem.net> | 2015-02-17 18:07:56 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2015-02-17 18:07:56 +0100 |
commit | 44cf4d675199bac0a9c23d38a68303e921c82cbe (patch) | |
tree | 3c8c27e7f584b123f7cd36fc5baabc63748db5a2 /include | |
parent | 865b83e9a4b834b1f58e60db4709031bef823f4a (diff) | |
download | mariadb-git-44cf4d675199bac0a9c23d38a68303e921c82cbe.tar.gz |
fix a case where automatic procedure grant was changing user's password
phase out make_password_from_salt() to be removed in 10.1
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql_com.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index 43be28f87a0..8fdac38dd66 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -618,14 +618,17 @@ void scramble_323(char *to, const char *message, const char *password); my_bool check_scramble_323(const unsigned char *reply, const char *message, unsigned long *salt); void get_salt_from_password_323(unsigned long *res, const char *password); +#if MYSQL_VERSION_ID < 100100 void make_password_from_salt_323(char *to, const unsigned long *salt); - +#endif void make_scrambled_password(char *to, const char *password); void scramble(char *to, const char *message, const char *password); my_bool check_scramble(const unsigned char *reply, const char *message, const unsigned char *hash_stage2); void get_salt_from_password(unsigned char *res, const char *password); +#if MYSQL_VERSION_ID < 100100 void make_password_from_salt(char *to, const unsigned char *hash_stage2); +#endif char *octet2hex(char *to, const char *str, unsigned int len); /* end of password.c */ |