Perform authentication handshake from client side.
- Parameters
-
[in] | vio | pointer to MYSQL_PLUGIN_VIO instance to be used for communication with the server |
[in] | mysql | pointer to a MySQL connection for which we authenticate |
After reading the initial packet from server, containing its UPN to be used as service name, client starts packet exchange by sending the first packet in this exchange. While handshake is not yet completed, client reads packets sent by the server and process them, possibly generating new data to be sent to the server.
This function reports errors.
- Returns
- 0 on success.