mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Re-commit MySQL 8 cached SHA auth support
With changes to (hopefully) correctly fall back if OpenSSL support is missing. Furthermore the hard-coded dependency on ext/hash is no longer an issue, as this extension is required in master. This reverts commit63072e9c0e
, reversing changes made to4cbabb6852
.
This commit is contained in:
parent
35be0590ed
commit
4f06e67ad2
7 changed files with 392 additions and 29 deletions
|
@ -281,6 +281,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue