MySQL 8.4.2
Source Code Documentation
|
auth_socket authentication plugin. More...
#include <mysql/plugin_auth.h>
#include <pwd.h>
#include <string.h>
#include <sys/socket.h>
#include "my_compiler.h"
Macros | |
#define | _GNU_SOURCE /* for struct ucred */ |
Functions | |
static int | socket_auth (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 (socket_auth) | |
Variables | |
static struct st_mysql_auth | socket_auth_handler |
mysql_declare_plugin_end | |
auth_socket authentication plugin.
Authentication is successful if the connection is done via a unix socket and the owner of the client process matches the user name that was used when connecting to mysqld.
#define _GNU_SOURCE /* for struct ucred */ |
|
static |
mysql_declare_plugin | ( | socket_auth | ) |
|
static |
|
static |
|
static |
mysql_declare_plugin_end |
|
static |