MySQL 9.1.0
Source Code Documentation
client_authentication.h File Reference
#include "mysql.h"
#include "mysql/client_plugin.h"

Go to the source code of this file.

Functions

int sha256_password_auth_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
 Authenticate the client using the RSA or TLS and a SHA256 salted password. More...
 
int sha256_password_init (char *, size_t, int, va_list)
 
int sha256_password_deinit (void)
 
int caching_sha2_password_auth_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
 Authenticate the client using the RSA or TLS and a SHA2 salted password. More...
 
int caching_sha2_password_init (char *, size_t, int, va_list)
 
int caching_sha2_password_deinit (void)
 
net_async_status caching_sha2_password_auth_client_nonblocking (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql, int *res)
 non blocking version of caching_sha2_password_auth_client More...
 
net_async_status sha256_password_auth_client_nonblocking (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql, int *res)
 Non blocking version of sha256_password_auth_client. More...
 

Function Documentation

◆ caching_sha2_password_auth_client()

int caching_sha2_password_auth_client ( MYSQL_PLUGIN_VIO vio,
MYSQL mysql 
)

Authenticate the client using the RSA or TLS and a SHA2 salted password.

Parameters
vioProvides plugin access to communication channel
mysqlClient connection handler
Returns
Error status
Return values
CR_ERRORAn error occurred.
CR_OKAuthentication succeeded.

◆ caching_sha2_password_auth_client_nonblocking()

net_async_status caching_sha2_password_auth_client_nonblocking ( MYSQL_PLUGIN_VIO vio,
MYSQL mysql,
int *  res 
)

non blocking version of caching_sha2_password_auth_client

◆ caching_sha2_password_deinit()

int caching_sha2_password_deinit ( void  )

◆ caching_sha2_password_init()

int caching_sha2_password_init ( char *  ,
size_t  ,
int  ,
va_list   
)

◆ sha256_password_auth_client()

int sha256_password_auth_client ( MYSQL_PLUGIN_VIO vio,
MYSQL mysql 
)

Authenticate the client using the RSA or TLS and a SHA256 salted password.

Parameters
vioProvides plugin access to communication channel
mysqlClient connection handler
Returns
Error status
Return values
CR_ERRORAn error occurred.
CR_OKAuthentication succeeded.

◆ sha256_password_auth_client_nonblocking()

net_async_status sha256_password_auth_client_nonblocking ( MYSQL_PLUGIN_VIO vio,
MYSQL mysql,
int *  res 
)

Non blocking version of sha256_password_auth_client.

◆ sha256_password_deinit()

int sha256_password_deinit ( void  )

◆ sha256_password_init()

int sha256_password_init ( char *  ,
size_t  ,
int  ,
va_list   
)