MySQL 9.0.0
Source Code Documentation
multi_factor_passwordopt-longopts.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24/**
25 @file include/multi_factor_passwordopt-longopts.h
26
27 This file contains password options to be specified as part of command-line
28 options for first,second,third authentication plugin factors for a given user.
29*/
30
31/* preserve existing option for backward compatibility */
32{"password",
33 'p',
34 "Password to use when connecting to server. If password is not given it's "
35 "asked from the tty.",
36 nullptr,
37 nullptr,
38 nullptr,
40 OPT_ARG,
41 0,
42 0,
43 0,
44 nullptr,
45 0,
46 nullptr},
47 /*
48 --password1, --password2 --password3 are new options to handle password for
49 first, second and third factor authentication plugin defined for a given
50 user account
51 */
52 {"password1",
54 "Password for first factor authentication plugin.",
55 nullptr,
56 nullptr,
57 nullptr,
59 OPT_ARG,
60 0,
61 0,
62 0,
63 nullptr,
64 0,
65 nullptr},
66 {"password2",
68 "Password for second factor authentication plugin.",
69 nullptr,
70 nullptr,
71 nullptr,
73 OPT_ARG,
74 0,
75 0,
76 0,
77 nullptr,
78 0,
79 nullptr},
80 {"password3",
82 "Password for third factor authentication plugin.",
83 nullptr,
84 nullptr,
85 nullptr,
87 OPT_ARG,
88 0,
89 0,
90 0,
91 nullptr,
92 0,
93 nullptr},
@ OPT_ARG
Definition: my_getopt.h:81
#define GET_PASSWORD
Definition: my_getopt.h:59
@ MYSQL_OPT_USER_PASSWORD
Definition: mysql.h:215