MySQL 8.0.40
Source Code Documentation
handshake_client.cc File Reference
#include <mysql.h>
#include "handshake.h"
#include "my_dbug.h"

Classes

class  Handshake_client
 Client-side context for authentication handshake. More...
 

Functions

int win_auth_handshake_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
 Perform authentication handshake from client side. More...
 

Function Documentation

◆ win_auth_handshake_client()

int win_auth_handshake_client ( MYSQL_PLUGIN_VIO vio,
MYSQL mysql 
)

Perform authentication handshake from client side.

Parameters
[in]viopointer to MYSQL_PLUGIN_VIO instance to be used for communication with the server
[in]mysqlpointer 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.