An implementation of security_context service methods.
Definition: security_context_imp.h:33
static mysql_service_status_t set(void *_thd, Security_context_handle in_ctx) noexcept
Sets a new security context for the thread.
Definition: security_context_imp.cc:65
static mysql_service_status_t lookup(Security_context_handle ctx, const char *user, const char *host, const char *ip, const char *db) noexcept
Looks up in the defined user accounts.
Definition: security_context_imp.cc:173
static mysql_service_status_t destroy(Security_context_handle ctx) noexcept
Deallocates a security context.
Definition: security_context_imp.cc:118
static mysql_service_status_t get(void *_thd, Security_context_handle *out_ctx) noexcept
Gets the security context for the thread.
Definition: security_context_imp.cc:41
static mysql_service_status_t create(Security_context_handle *out_ctx) noexcept
Creates a new security context and initializes it with the defaults (no access, no user etc).
Definition: security_context_imp.cc:99
static mysql_service_status_t copy(Security_context_handle in_ctx, Security_context_handle *out_ctx) noexcept
Duplicates a security context.
Definition: security_context_imp.cc:139
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88