#include <openssl/rsa.h>
#include <stddef.h>
#include <sys/types.h>
#include "lex_string.h"
#include "my_thread_local.h"
#include "mysql/plugin_auth.h"
#include "mysql/plugin_auth_common.h"
#include "mysql/strings/m_ctype.h"
#include "sql/sql_plugin_ref.h"
Go to the source code of this file.
|
typedef struct rsa_st | RSA |
|
◆ AUTH_DEFAULT_RSA_PRIVATE_KEY
#define AUTH_DEFAULT_RSA_PRIVATE_KEY "private_key.pem" |
◆ AUTH_DEFAULT_RSA_PUBLIC_KEY
#define AUTH_DEFAULT_RSA_PUBLIC_KEY "public_key.pem" |
◆ RSA
typedef struct rsa_st RSA |
◆ cached_plugins_enum
Enumerator |
---|
PLUGIN_CACHING_SHA2_PASSWORD | |
PLUGIN_SHA256_PASSWORD | |
PLUGIN_LAST | |
◆ decoy_user()
When authentication is attempted using an unknown username a dummy user account with no authentication capabilities is assigned to the connection.
When server is started with -skip-grant-tables, a dummy user account with authentication capabilities is assigned to the connection. Dummy user authenticates with the empty authentication string. This is done to decrease the cost of enumerating user accounts based on authentication protocol.
- Parameters
-
[in] | username | A dummy user to be created. |
[in] | hostname | Host of the dummy user. |
[in] | mem | Memory in which the dummy ACL user will be created. |
[in] | rand | Seed value to generate random data |
[in] | is_initialized | State of ACL caches |
- Return values
-
◆ deinit_rsa_keys()
void deinit_rsa_keys |
( |
void |
| ) |
|
◆ init_rsa_keys()
bool init_rsa_keys |
( |
void |
| ) |
|
Loads the RSA key pair from disk and store them in a global variable.
- See also
- init_ssl()
- Returns
- Error code
- Return values
-
Presence of only a private key file and a public temp file implies that server crashed after creating the private key file and could not create a public key file. Hence removing the private key file.
◆ show_rsa_public_key()
int show_rsa_public_key |
( |
THD * |
thd, |
|
|
SHOW_VAR * |
var, |
|
|
char * |
buff |
|
) |
| |
◆ allow_all_hosts
◆ g_cached_authentication_plugins
◆ validate_password_plugin_name