MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
plugin_validate_password.h
1
/* Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
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 as published by
5
the Free Software Foundation; version 2 of the License.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
11
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16
#ifndef MYSQL_PLUGIN_VALIDATE_PASSWORD_INCLUDED
17
#define MYSQL_PLUGIN_VALIDATE_PASSWORD_INCLUDED
18
19
/* API for validate_password plugin. (MYSQL_VALIDATE_PASSWORD_PLUGIN) */
20
21
#include <mysql/plugin.h>
22
#define MYSQL_VALIDATE_PASSWORD_INTERFACE_VERSION 0x0100
23
24
/*
25
The descriptor structure for the plugin, that is referred from
26
st_mysql_plugin.
27
*/
28
29
typedef
void
* mysql_string_handle;
30
31
struct
st_mysql_validate_password
32
{
33
int
interface_version;
34
/*
35
This function retuns TRUE for passwords which satisfy the password
36
policy (as choosen by plugin variable) and FALSE for all other
37
password
38
*/
39
int (*validate_password)(mysql_string_handle password);
40
/*
41
This function returns the password strength (0-100) depending
42
upon the policies
43
*/
44
int (*get_password_strength)(mysql_string_handle password);
45
};
46
#endif
include
mysql
plugin_validate_password.h
Generated on Sat Nov 9 2013 01:24:45 for MySQL 5.6.14 Source Code Document by
1.8.1.2