diff options
| author | Andrey Hristov <andrey@php.net> | 2011-01-24 12:34:47 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2011-01-24 12:34:47 +0000 |
| commit | ce4e6f4db5ce8f7a292bd6479c70f66c509fadb0 (patch) | |
| tree | 70415f9f1266c6260628c1d2d6738e99958fd12f /ext/mysqlnd/mysqlnd_net.c | |
| parent | e7a2c9a85c19519c1071c6dac1dad68bb7ae959f (diff) | |
| download | php-git-ce4e6f4db5ce8f7a292bd6479c70f66c509fadb0.tar.gz | |
Handle MySQL 5.5 authentication features.
Authentication protocol can be changed, a new raw
packet is introduced, which includes only the "encrypted"
data for the auth plugin, sent after change protocol (0xFE)
is sent to the client.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_net.c')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_net.c b/ext/mysqlnd/mysqlnd_net.c index 974f1918e9..0acc6ccd6e 100644 --- a/ext/mysqlnd/mysqlnd_net.c +++ b/ext/mysqlnd/mysqlnd_net.c @@ -227,7 +227,7 @@ MYSQLND_METHOD(mysqlnd_net, connect)(MYSQLND_NET * net, const char * const schem count + MYSQLND_HEADER_SIZE = sizeof(buf) (not the pointer but the actual buffer) */ size_t -MYSQLND_METHOD(mysqlnd_net, send)(MYSQLND * const conn, char * const buf, size_t count TSRMLS_DC) +MYSQLND_METHOD(mysqlnd_net, send)(MYSQLND * const conn, zend_uchar * const buf, size_t count TSRMLS_DC) { zend_uchar safe_buf[((MYSQLND_HEADER_SIZE) + (sizeof(zend_uchar)) - 1) / (sizeof(zend_uchar))]; zend_uchar *safe_storage = safe_buf; |
