MySQL 8.0.40
Source Code Documentation
plugin_client.cc File Reference
#include <mysql.h>
#include <mysql/client_plugin.h>
#include "common.h"

Functions

static int win_auth_client_plugin_init (char *, size_t, int, va_list)
 
static int win_auth_client_plugin_deinit ()
 
int win_auth_handshake_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
 Perform authentication handshake from client side. More...
 

Variables

auth_plugin_t win_auth_client_plugin
 

Function Documentation

◆ win_auth_client_plugin_deinit()

static int win_auth_client_plugin_deinit ( )
static

◆ win_auth_client_plugin_init()

static int win_auth_client_plugin_init ( char *  ,
size_t  ,
int  ,
va_list   
)
static

◆ 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.

Variable Documentation

◆ win_auth_client_plugin

auth_plugin_t win_auth_client_plugin
Initial value:
= {
"authentication_windows_client",
"Rafal Somla",
"Windows Authentication Plugin - client side",
{0, 1, 0},
"GPL",
NULL,
nullptr}
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN_INTERFACE_VERSION
Definition: client_plugin.h:83
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN
Definition: client_plugin.h:80
static int win_auth_client_plugin_init(char *, size_t, int, va_list)
Definition: plugin_client.cc:39
int win_auth_handshake_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
Perform authentication handshake from client side.
Definition: handshake_client.cc:417
static int win_auth_client_plugin_deinit()
Definition: plugin_client.cc:43
#define NULL
Definition: types.h:55