Change things to allow passing of the password length

to mysqlnd. This is needed as a password might include
a \0 and thus we need to be binary safe.
This commit is contained in:
Andrey Hristov 2011-01-14 13:00:42 +00:00
parent 0048446fdd
commit 5ca5c2bf43
8 changed files with 24 additions and 11 deletions

View file

@ -36,6 +36,7 @@ mysqlnd_native_auth_handshake(MYSQLND * conn,
const char * const passwd,
const char * const db,
const size_t db_len,
const size_t passwd_len,
const MYSQLND_PACKET_GREET * const greet_packet,
const MYSQLND_OPTIONS * const options,
unsigned long mysql_flags,
@ -132,6 +133,7 @@ mysqlnd_native_auth_change_user(MYSQLND * const conn,
const char * const passwd,
const char * const db,
const size_t db_len,
const size_t passwd_len,
const zend_bool silent,
char ** switch_to_auth_protocol
TSRMLS_DC)