diff options
author | unknown <peter@mysql.com> | 2002-11-24 17:07:53 +0300 |
---|---|---|
committer | unknown <peter@mysql.com> | 2002-11-24 17:07:53 +0300 |
commit | 8c8b97fdf4756a699346ae1688136624d76713bc (patch) | |
tree | db7cb82e2166048d043214a331a5ad63bc7d0621 /include/mysql_com.h | |
parent | 85bbdcf016dadf31335ad9ee98c3c8acfc167e2f (diff) | |
download | mariadb-git-8c8b97fdf4756a699346ae1688136624d76713bc.tar.gz |
SCRUM: Main change for Secure connection handling. Still needs some more coding. Commit
done for merge with newer version of code.
client/mysqladmin.c:
Support for new password format
include/mysql.h:
Increase buffer as new scramble is larger
include/mysql_com.h:
Add new prototypes for new auth handling
libmysql/libmysql.c:
New handshake handling code
mysql-test/install_test_db.sh:
Extend password length to handle new passwords
mysql-test/t/rpl000017-slave.sh:
Adjust test to work with longer password
scripts/mysql_fix_privilege_tables.sh:
Increase password length at priv table convertion
scripts/mysql_install_db.sh:
Longer passwords
sql/item_strfunc.cc:
New password generation function needs seed for password generation
sql/mini_client.cc:
Change MiniClient to handle new auth in replication
sql/mysqld.cc:
Remove unneeded flag (was added earlier for same change)
sql/password.c:
A lot of changes to handle new authentication and doccumentation
sql/sql_acl.cc:
Password handling function adjustment
sql/sql_acl.h:
Change prototype
sql/sql_class.h:
Extend scramble length
sql/sql_parse.cc:
Handling server side of new authentication
sql/sql_yacc.yy:
Adjustment for new prototypes
Diffstat (limited to 'include/mysql_com.h')
-rw-r--r-- | include/mysql_com.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index 397cfe0f387..4737c55dba5 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -280,10 +280,17 @@ 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); +void make_scrambled_password(char *to,const char *password,my_bool force_old_scramble,struct rand_struct *rand_st); uint get_password_length(my_bool force_old_scramble); uint8 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); +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_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); char *scramble(char *to,const char *message,const char *password, my_bool old_ver); |