MySQL 8.0.32
Source Code Documentation
multi_factor_passwordopt-longopts.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2022, 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/**
24 @file include/multi_factor_passwordopt-longopts.h
25
26 This file contains password options to be specified as part of command-line
27 options for first,second,third authentication plugin factors for a given user.
28*/
29
30/* preserve existing option for backward compatibility */
31{"password",
32 'p',
33 "Password to use when connecting to server. If password is not given it's "
34 "asked from the tty.",
35 nullptr,
36 nullptr,
37 nullptr,
39 OPT_ARG,
40 0,
41 0,
42 0,
43 nullptr,
44 0,
45 nullptr},
46 /*
47 --password1, --password2 --password3 are new options to handle password for
48 first, second and third factor authentication plugin defined for a given
49 user account
50 */
51 {"password1",
53 "Password for first factor authentication plugin.",
54 nullptr,
55 nullptr,
56 nullptr,
58 OPT_ARG,
59 0,
60 0,
61 0,
62 nullptr,
63 0,
64 nullptr},
65 {"password2",
67 "Password for second factor authentication plugin.",
68 nullptr,
69 nullptr,
70 nullptr,
72 OPT_ARG,
73 0,
74 0,
75 0,
76 nullptr,
77 0,
78 nullptr},
79 {"password3",
81 "Password for third factor authentication plugin.",
82 nullptr,
83 nullptr,
84 nullptr,
86 OPT_ARG,
87 0,
88 0,
89 0,
90 nullptr,
91 0,
92 nullptr},
@ OPT_ARG
Definition: my_getopt.h:80
#define GET_PASSWORD
Definition: my_getopt.h:58
@ MYSQL_OPT_USER_PASSWORD
Definition: mysql.h:214