MySQL 9.1.0
Source Code Documentation
|
#include "sql/auth/auth_common.h"
#include "sql/auth/auth_utility.h"
#include "sql/auth/sql_auth_cache.h"
#include <string.h>
#include "my_alloc.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "mysql/mysql_lex_string.h"
#include "sql/auth/auth_acls.h"
#include "sql/auth/auth_internal.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/field.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/table.h"
#include "sql/thr_malloc.h"
#include "sql_string.h"
Namespaces | |
namespace | consts |
Functions | |
const std::string | consts::mysql ("mysql") |
const std::string | consts::system_user ("SYSTEM_USER") |
const std::string | consts::connection_admin ("CONNECTION_ADMIN") |
std::string | get_one_priv (Access_bitmask &revoke_privs) |
Converts privilege represented by LSB to string. More... | |
void | set_system_user_flag (THD *thd, bool check_for_main_security_ctx) |
Set the system_user flag in the THD. More... | |
void | set_connection_admin_flag (THD *thd, bool check_for_main_security_ctx) |
Set the connection_admin flag in the THD. More... | |
bool | decrypt_RSA_private_key (uchar *pkt, int cipher_length, unsigned char *plain_text, size_t plain_text_len, RSA *private_key) |
Decrypt pkt data using RSA private key. More... | |
bool decrypt_RSA_private_key | ( | uchar * | pkt, |
int | cipher_length, | ||
unsigned char * | plain_text, | ||
size_t | plain_text_len, | ||
RSA * | private_key | ||
) |
Decrypt pkt data using RSA private key.
[in] | pkt | Data to decrypt. |
[in] | cipher_length | Length of the data. |
[in] | plain_text | Buffer to store result. |
[in] | plain_text_len | size of buffer |
[in] | private_key | Private key to use. |
false | Success. |
true | Failure. |
std::string get_one_priv | ( | Access_bitmask & | revoke_privs | ) |
Converts privilege represented by LSB to string.
This is used while serializing in-memory data to JSON format.
[in,out] | revoke_privs | Privilege bitmask |
void set_connection_admin_flag | ( | THD * | thd, |
bool | check_for_main_security_ctx | ||
) |
Set the connection_admin flag in the THD.
Probe the security context for the CONNECTION_ADMIN or SUPER dynamic privilege only if it has not been changed from original security context in the THD. If the original security context does not have CONNECTION_ADMIN or SUPER privlege then reset the flag in the THD, otherwise set it.
[in,out] | thd | Thead handle |
[in] | check_for_main_security_ctx | If this flag value is true then we toggle value in THD only if current security context is same as main security context. |
void set_system_user_flag | ( | THD * | thd, |
bool | check_for_main_security_ctx | ||
) |
Set the system_user flag in the THD.
Probe the security context for the SYSTEM_USER dynamic privileve only if it has not been changed from original security context in the THD. If the original security context does not have SYSTEM_USER privlege then reset the flag in the THD, otherwise set it.
[in,out] | thd | Thead handle |
[in] | check_for_main_security_ctx | If this flag value is true then we toggle value in THD only if current security context is same as main security context. |