summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_auth.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-09-04 05:57:07 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-09-04 05:57:07 +0200
commit63072e9c0ebbb676cd39d0f867d873737c676add (patch)
tree1647ba13a192cd56d95dcf298441bf36c46ed7c4 /ext/mysqlnd/mysqlnd_auth.h
parent4cbabb6852d2a7d966fb78a53d9d4c1cac18f10b (diff)
parentedec566d9b431259e8cd7a6cb1737d32234e1c6e (diff)
downloadphp-git-63072e9c0ebbb676cd39d0f867d873737c676add.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.h')
-rw-r--r--ext/mysqlnd/mysqlnd_auth.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd_auth.h b/ext/mysqlnd/mysqlnd_auth.h
index 3ddb5a5f70..8fc369abca 100644
--- a/ext/mysqlnd/mysqlnd_auth.h
+++ b/ext/mysqlnd/mysqlnd_auth.h
@@ -31,9 +31,26 @@ mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn,
unsigned int server_charset_no,
zend_bool use_full_blown_auth_packet,
const char * const auth_protocol,
- struct st_mysqlnd_authentication_plugin * auth_plugin,
- const zend_uchar * const orig_auth_plugin_data,
- const size_t orig_auth_plugin_data_len,
+ const zend_uchar * const auth_plugin_data,
+ const size_t auth_plugin_data_len,
+ char ** switch_to_auth_protocol,
+ size_t * switch_to_auth_protocol_len,
+ zend_uchar ** switch_to_auth_protocol_data,
+ size_t * switch_to_auth_protocol_data_len
+ );
+
+enum_func_status
+mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn,
+ const char * const user,
+ const char * const passwd,
+ const size_t passwd_len,
+ const char * const db,
+ const size_t db_len,
+ const MYSQLND_SESSION_OPTIONS * const session_options,
+ zend_ulong mysql_flags,
+ unsigned int server_charset_no,
+ zend_bool use_full_blown_auth_packet,
+ const char * const auth_protocol,
const zend_uchar * const auth_plugin_data,
const size_t auth_plugin_data_len,
char ** switch_to_auth_protocol,