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_auth_common.h
Go to the documentation of this file.
1
#ifndef MYSQL_PLUGIN_AUTH_COMMON_INCLUDED
2
/* Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
16
23
#define MYSQL_PLUGIN_AUTH_COMMON_INCLUDED
24
26
#define MYSQL_USERNAME_LENGTH 48
27
38
#define CR_AUTH_PLUGIN_ERROR 3
39
45
#define CR_AUTH_HANDSHAKE 2
46
52
#define CR_AUTH_USER_CREDENTIALS 1
53
63
#define CR_ERROR 0
64
71
#define CR_OK -1
72
84
#define CR_OK_HANDSHAKE_COMPLETE -2
85
86
typedef
struct
st_plugin_vio_info
87
{
88
enum
{ MYSQL_VIO_INVALID, MYSQL_VIO_TCP, MYSQL_VIO_SOCKET,
89
MYSQL_VIO_PIPE, MYSQL_VIO_MEMORY } protocol;
90
int
socket
;
91
#ifdef _WIN32
92
HANDLE handle;
93
#endif
94
}
MYSQL_PLUGIN_VIO_INFO
;
95
99
typedef
struct
st_plugin_vio
100
{
106
int (*
read_packet
)(
struct
st_plugin_vio
*vio,
107
unsigned
char
**
buf
);
108
113
int (*
write_packet
)(
struct
st_plugin_vio
*vio,
114
const
unsigned
char
*packet,
115
int
packet_len);
116
121
void (*
info
)(
struct
st_plugin_vio
*vio,
struct
st_plugin_vio_info
*
info
);
122
123
}
MYSQL_PLUGIN_VIO
;
124
125
#endif
126
include
mysql
plugin_auth_common.h
Generated on Sat Nov 9 2013 01:24:45 for MySQL 5.6.14 Source Code Document by
1.8.1.2