MySQL 8.0.39
Source Code Documentation
s_mysql_mysql_security_context_options Struct Reference

#include <security_context.h>

Public Attributes

mysql_service_status_t(* get )(Security_context_handle ctx, const char *name, void *inout_pvalue)
 Reads a named security context attribute and returns its value. More...
 
mysql_service_status_t(* set )(Security_context_handle ctx, const char *name, void *pvalue)
 Sets a value for a named security context attribute Currently defined names are: More...
 

Member Data Documentation

◆ get

mysql_service_status_t(* s_mysql_mysql_security_context_options::get) (Security_context_handle ctx, const char *name, void *inout_pvalue)

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]ctxThe handle of the security context to read from
[in]nameThe option name to read
[out]inout_pvalueThe value of the option. Type depends on the name.
Return values
truefailure
falsesuccess

◆ set

mysql_service_status_t(* s_mysql_mysql_security_context_options::set) (Security_context_handle ctx, const char *name, void *pvalue)

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]ctxThe handle of the security context to set into
[in]nameThe option name to set
[in]pvalueThe value of the option. Type depends on the name.
Return values
truefailure
falsesuccess

The documentation for this struct was generated from the following file: