28#ifndef AUTHETICATION_KERBEROS_CLIENTOPT_VARS_H
29#define AUTHETICATION_KERBEROS_CLIENTOPT_VARS_H
41const char *client_mode_names_lib[] = {
"SSPI",
"GSSAPI",
NullS};
44 client_mode_names_lib,
nullptr};
46static int opt_authentication_kerberos_client_mode = 0;
48static int set_authentication_kerberos_client_mode(
MYSQL *
mysql,
char *
error,
50 if (opt_authentication_kerberos_client_mode == 1) {
54 if (!kerberos_client_plugin) {
55 snprintf(
error, error_size,
56 "Failed to load plugin authentication_kerberos_client.");
61 kerberos_client_plugin,
62 "plugin_authentication_kerberos_client_mode",
63 client_mode_names_lib[opt_authentication_kerberos_client_mode])) {
64 snprintf(
error, error_size,
65 "Failed to set value '%s' for "
66 "--plugin-authentication-kerberos-client-mode",
67 client_mode_names_lib[opt_authentication_kerberos_client_mode]);
int mysql_plugin_options(struct st_mysql_client_plugin *plugin, const char *option, const void *value)
set plugin options
Definition: client_plugin.cc:581
struct st_mysql_client_plugin * mysql_client_find_plugin(struct MYSQL *mysql, const char *name, int type)
finds an already loaded plugin by name, or loads it, if necessary
Definition: client_plugin.cc:554
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN
Definition: client_plugin.h:80
#define NullS
Definition of the null string (a null pointer of type char *), used in some of our string handling co...
Definition: m_string.h:53
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
Definition: instrumented_condition_variable.h:32
Definition: client_plugin.h:112
#define array_elements(A)
Definition: validate_password_imp.cc:48