27#ifndef AUTHETICATION_KERBEROS_CLIENTOPT_VARS_H
28#define AUTHETICATION_KERBEROS_CLIENTOPT_VARS_H
40const char *client_mode_names_lib[] = {
"SSPI",
"GSSAPI",
NullS};
43 client_mode_names_lib,
nullptr};
45static int opt_authentication_kerberos_client_mode = 0;
47static int set_authentication_kerberos_client_mode(
MYSQL *
mysql,
char *
error,
49 if (opt_authentication_kerberos_client_mode == 1) {
53 if (!kerberos_client_plugin) {
54 snprintf(
error, error_size,
55 "Failed to load plugin authentication_kerberos_client.");
60 kerberos_client_plugin,
61 "plugin_authentication_kerberos_client_mode",
62 client_mode_names_lib[opt_authentication_kerberos_client_mode])) {
63 snprintf(
error, error_size,
64 "Failed to set value '%s' for "
65 "--plugin-authentication-kerberos-client-mode",
66 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:596
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:569
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN
Definition: client_plugin.h:79
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
Definition: instrumented_condition_variable.h:29
#define NullS
Definition of the null string (a null pointer of type char *), used in some of our string handling co...
Definition: nulls.h:32
Definition: client_plugin.h:113
#define array_elements(A)
Definition: validate_password_imp.cc:47