MySQL 8.0.39
Source Code Documentation
|
#include <mysql/client_plugin.h>
#include <mysql/plugin_auth.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mysql.h>
#include "my_compiler.h"
Macros | |
#define | ORDINARY_QUESTION "\2" |
first byte of the question string is the question "type". More... | |
#define | LAST_QUESTION "\3" |
#define | LAST_PASSWORD "\4" |
#define | PASSWORD_QUESTION "\5" |
Functions | |
static int | qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info) |
static int | generate_auth_string_hash (char *outbuf, unsigned int *buflen, const char *inbuf, unsigned int inbuflen) |
static int | validate_auth_string_hash (char *const inbuf, unsigned int buflen) |
static int | set_salt (const char *password, unsigned int password_len, unsigned char *salt, unsigned char *salt_len) |
mysql_declare_plugin (test_plugin) | |
static int | test_plugin_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql) |
The main function of the test plugin. More... | |
mysql_declare_client_plugin (AUTHENTICATION) "qa_auth_interface" | |
Variables | |
static struct st_mysql_auth | qa_auth_test_handler |
mysql_declare_plugin_end | |
MYSQL_CLIENT_PLUGIN_AUTHOR_ORACLE | |
Dialog Client Authentication | Plugin |
Dialog Client Authentication | GPL |
Dialog Client Authentication | nullptr |
Dialog Client Authentication | test_plugin_client |
Dialog Client Authentication | mysql_end_client_plugin |
#define LAST_PASSWORD "\4" |
#define LAST_QUESTION "\3" |
#define ORDINARY_QUESTION "\2" |
first byte of the question string is the question "type".
It can be a "ordinary" or a "password" question. The last bit set marks a last question in the authentication exchange.
#define PASSWORD_QUESTION "\5" |
|
static |
mysql_declare_client_plugin | ( | AUTHENTICATION | ) |
mysql_declare_plugin | ( | test_plugin | ) |
|
static |
|
static |
|
static |
The main function of the test plugin.
Reads the prompt, check if the handshake is done and if the prompt is a password request and returns the password. Otherwise return error.
|
static |
Dialog Client Authentication GPL |
MYSQL_CLIENT_PLUGIN_AUTHOR_ORACLE |
mysql_declare_plugin_end |
Dialog Client Authentication mysql_end_client_plugin |
Dialog Client Authentication nullptr |
Dialog Client Authentication Plugin |
|
static |
Dialog Client Authentication test_plugin_client |