summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_auth.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-01-14 13:00:42 +0000
committerAndrey Hristov <andrey@php.net>2011-01-14 13:00:42 +0000
commit5ca5c2bf43c292b687642adb4b239d651384713e (patch)
treec9a9b72a3c04ccc44579a68834409b7f5fc31772 /ext/mysqlnd/mysqlnd_auth.c
parent0048446fddb506a06a37ed7c0f31a28ba4d7d215 (diff)
downloadphp-git-5ca5c2bf43c292b687642adb4b239d651384713e.tar.gz
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.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.c')
-rw-r--r--ext/mysqlnd/mysqlnd_auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_auth.c b/ext/mysqlnd/mysqlnd_auth.c
index cc360cb6de..ccf935355e 100644
--- a/ext/mysqlnd/mysqlnd_auth.c
+++ b/ext/mysqlnd/mysqlnd_auth.c
@@ -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)