diff options
author | unknown <peter@mysql.com> | 2002-11-30 16:31:58 +0300 |
---|---|---|
committer | unknown <peter@mysql.com> | 2002-11-30 16:31:58 +0300 |
commit | 05ba93c2793a1ae79f560a0fc153056f3d39ce43 (patch) | |
tree | 8cb72ffc1f46d5e546f302958453ce4a83d26d5e /include | |
parent | 14754ce141aa6a061a94fa668094b0602edd69c5 (diff) | |
download | mariadb-git-05ba93c2793a1ae79f560a0fc153056f3d39ce43.tar.gz |
SCRUM: Secure auth
Implement mysql_change_user
Get rid of double user search at authentication
Some cleanups
client/mysqladmin.c:
Fix long line
include/mysql_com.h:
Fix long lines
libmysql/libmysql.c:
mysql_change_user() for new auth + some fixes
sql/password.c:
Add author info so who is guilty in errors would be known :)
sql/sql_acl.cc:
Move class definitions to .h
sql/sql_acl.h:
Add class definitions
sql/sql_parse.cc:
Get rid of double user search. Implement mysql_change_user
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql_com.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index b8e78ee8f60..09e1db5aeb6 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -280,18 +280,22 @@ extern unsigned long net_buffer_length; void randominit(struct rand_struct *,unsigned long seed1, unsigned long seed2); double rnd(struct rand_struct *); -void make_scrambled_password(char *to,const char *password,my_bool force_old_scramble,struct rand_struct *rand_st); +void make_scrambled_password(char *to,const char *password, + my_bool force_old_scramble,struct rand_struct *rand_st); int get_password_length(my_bool force_old_scramble); char get_password_version(const char* password); void create_random_string(int length,struct rand_struct *rand_st,char* target); -my_bool validate_password(const char* password, const char* message, ulong* salt); +my_bool validate_password(const char* password, const char* message, + ulong* salt); void password_hash_stage1(char *to, const char *password); void password_hash_stage2(char *to,const char *salt); void password_crypt(const char* from,char* to, const char* password,int length); -void get_hash_and_password(ulong* salt, uint8 pversion,char* hash, unsigned char* bin_password); +void get_hash_and_password(ulong* salt, unsigned char pversion,char* hash, + unsigned char* bin_password); void get_salt_from_password(unsigned long *res,const char *password); void create_key_from_old_password(const char* password,char* key); -void make_password_from_salt(char *to, unsigned long *hash_res, uint8 password_version); +void make_password_from_salt(char *to, unsigned long *hash_res, + unsigned char password_version); char *scramble(char *to,const char *message,const char *password, my_bool old_ver); my_bool check_scramble(const char *, const char *message, |