24#ifndef AUTHETICATION_KERBEROS_CLIENTOPT_VARS_H
25#define AUTHETICATION_KERBEROS_CLIENTOPT_VARS_H
37const char *client_mode_names_lib[] = {
"SSPI",
"GSSAPI",
NullS};
40 client_mode_names_lib,
nullptr};
42static int opt_authentication_kerberos_client_mode = 0;
44static int set_authentication_kerberos_client_mode(
MYSQL *
mysql,
char *
error,
46 if (opt_authentication_kerberos_client_mode == 1) {
50 if (!kerberos_client_plugin) {
51 snprintf(
error, error_size,
52 "Failed to load plugin authentication_kerberos_client.");
57 kerberos_client_plugin,
58 "plugin_authentication_kerberos_client_mode",
59 client_mode_names_lib[opt_authentication_kerberos_client_mode])) {
60 snprintf(
error, error_size,
61 "Failed to set value '%s' for "
62 "--plugin-authentication-kerberos-client-mode",
63 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:657
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:630
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN
Definition: client_plugin.h:80
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
void error(const char *format,...)
Definition: instrumented_condition_variable.h:32
#define NullS
Definition of the null string (a null pointer of type char *), used in some of our string handling co...
Definition: nulls.h:33
Definition: client_plugin.h:114
#define array_elements(A)
Definition: validate_password_imp.cc:50