#include <security_context.h>
◆ get
Reads a named security context attribute and returns its value.
Currently defined names are:
- user MYSQL_LEX_CSTRING * login user (a.k.a. the user's part of USER())
- host MYSQL_LEX_CSTRING * login host (a.k.a. the host's part of USER())
- ip MYSQL_LEX_CSTRING * login client ip
- host_or_ip MYSQL_LEX_CSTRING * host, if present, ip if not.
- priv_user MYSQL_LEX_CSTRING * authenticated user (a.k.a. the user's part of CURRENT_USER())
- priv_host MYSQL_LEX_CSTRING * authenticated host (a.k.a. the host's part of CURRENT_USER())
- proxy_user MYSQL_LEX_CSTRING * the proxy user used in authenticating
- privilege_super DECLARE_BOOL_METHOD * 1 if the user account has supper privilege, 0 otherwise
- privilege_execute DECLARE_BOOL_METHOD * 1 if the user account has execute privilege, 0 otherwise
- Parameters
-
[in] | ctx | The handle of the security context to read from |
[in] | name | The option name to read |
[out] | inout_pvalue | The value of the option. Type depends on the name. |
- Return values
-
◆ set
Sets a value for a named security context attribute Currently defined names are:
- user MYSQL_LEX_CSTRING * login user (a.k.a. the user's part of USER())
- host MYSQL_LEX_CSTRING * login host (a.k.a. the host's part of USER())
- ip MYSQL_LEX_CSTRING * login client ip
- priv_user MYSQL_LEX_CSTRING * authenticated user (a.k.a. the user's part of CURRENT_USER())
- priv_host MYSQL_LEX_CSTRING * authenticated host (a.k.a. the host's part of CURRENT_USER())
- proxy_user MYSQL_LEX_CSTRING * the proxy user used in authenticating
- privilege_super DECLARE_BOOL_METHOD * 1 if the user account has supper privilege, 0 otherwise
- privilege_execute DECLARE_BOOL_METHOD * 1 if the user account has execute privilege, 0 otherwise
- Parameters
-
[in] | ctx | The handle of the security context to set into |
[in] | name | The option name to set |
[in] | pvalue | The value of the option. Type depends on the name. |
- Return values
-
The documentation for this struct was generated from the following file: