MySQL 8.3.0
Source Code Documentation
authentication_webauthn_clientopt-vars.h
Go to the documentation of this file.
1/* Copyright (c) 2023, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef AUTHENTICATION_WEBAUTH_CLIENTOPT_VARS_H
24#define AUTHENTICATION_WEBAUTH_CLIENTOPT_VARS_H
25
26#include <cstdio>
27#include "mysql.h"
28
29using std::snprintf;
31
33 size_t error_size) {
35 struct st_mysql_client_plugin *webauthn_client_plugin =
36 mysql_client_find_plugin(mysql, "authentication_webauthn_client",
38 if (!webauthn_client_plugin) {
39 snprintf(error, error_size,
40 "Failed to load authentication_webauthn_client.");
41 return 1;
42 }
43
45 webauthn_client_plugin,
46 "authentication_webauthn_client_preserve_privacy",
48 snprintf(error, error_size,
49 "Failed to set value 'TRUE' for "
50 "--plugin-authentication-webauthn-client-preserve-privacy");
51 return 1;
52 }
53 }
54 return 0;
55}
56#endif /* AUTHENTICATION_WEBAUTH_CLIENTOPT_VARS_H */
static int set_authentication_webauthn_options(MYSQL *mysql, char *error, size_t error_size)
Definition: authentication_webauthn_clientopt-vars.h:32
bool opt_authentication_webauthn_client_preserve_privacy
Definition: authentication_webauthn_clientopt-vars.h:30
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:31
Definition: mysql.h:297
Definition: client_plugin.h:113