MySQL 8.0.40
Source Code Documentation
|
#include <mysql/client_plugin.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 | test_plugin_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql) |
The main function of the test plugin. More... | |
mysql_declare_client_plugin (AUTHENTICATION) "qa_auth_client" | |
Variables | |
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" |
mysql_declare_client_plugin | ( | AUTHENTICATION | ) |
|
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.
Dialog Client Authentication GPL |
MYSQL_CLIENT_PLUGIN_AUTHOR_ORACLE |
Dialog Client Authentication mysql_end_client_plugin |
Dialog Client Authentication nullptr |
Dialog Client Authentication Plugin |
Dialog Client Authentication test_plugin_client |