summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.h
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2018-06-06 00:17:34 +0200
committerJohannes Schlüter <johannes@php.net>2018-06-06 00:17:34 +0200
commitd6e81f0bfd0cb90586dd83d4fd47a4302605261a (patch)
treec3e57467a65c5981ad2fd892eb01aa5c9e63cc98 /ext/mysqlnd/mysqlnd_wireprotocol.h
parent6c3b70e9a56d2f46cc2293c9821f46db9040d29b (diff)
downloadphp-git-d6e81f0bfd0cb90586dd83d4fd47a4302605261a.tar.gz
Fix MySQL 8 auth
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.h')
-rw-r--r--ext/mysqlnd/mysqlnd_wireprotocol.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.h b/ext/mysqlnd/mysqlnd_wireprotocol.h
index d6855580b4..c749afeb75 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.h
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.h
@@ -292,6 +292,16 @@ typedef struct st_mysqlnd_packet_sha256_pk_request_response {
size_t public_key_len;
} MYSQLND_PACKET_SHA256_PK_REQUEST_RESPONSE;
+typedef struct st_mysqlnd_packet_cached_sha2_result {
+ MYSQLND_PACKET_HEADER header;
+ uint8_t response_code;
+ uint8_t result;
+ uint8_t request;
+ zend_uchar * password;
+ size_t password_len;
+} MYSQLND_PACKET_CACHED_SHA2_RESULT;
+
+
zend_ulong php_mysqlnd_net_field_length(const zend_uchar **packet);
zend_uchar * php_mysqlnd_net_store_length(zend_uchar *packet, const uint64_t length);