Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6305533d
Commit
6305533d
authored
Mar 06, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auth Plugin API: add THD to MYSQL_SERVER_AUTH_INFO
so that auth plugins could use various thd services
parent
051851b9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
41 deletions
+46
-41
include/mysql/plugin_auth.h
include/mysql/plugin_auth.h
+6
-1
include/mysql/plugin_auth.h.pp
include/mysql/plugin_auth.h.pp
+1
-0
sql/sql_acl.cc
sql/sql_acl.cc
+39
-40
No files found.
include/mysql/plugin_auth.h
View file @
6305533d
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include <mysql/plugin.h>
#include <mysql/plugin.h>
#define MYSQL_AUTHENTICATION_INTERFACE_VERSION 0x020
0
#define MYSQL_AUTHENTICATION_INTERFACE_VERSION 0x020
1
#include <mysql/plugin_auth_common.h>
#include <mysql/plugin_auth_common.h>
...
@@ -105,6 +105,11 @@ typedef struct st_mysql_server_auth_info
...
@@ -105,6 +105,11 @@ typedef struct st_mysql_server_auth_info
*/
*/
unsigned
int
host_or_ip_length
;
unsigned
int
host_or_ip_length
;
/**
Current THD pointer (to use with various services)
*/
MYSQL_THD
thd
;
}
MYSQL_SERVER_AUTH_INFO
;
}
MYSQL_SERVER_AUTH_INFO
;
/**
/**
...
...
include/mysql/plugin_auth.h.pp
View file @
6305533d
...
@@ -504,6 +504,7 @@ typedef struct st_mysql_server_auth_info
...
@@ -504,6 +504,7 @@ typedef struct st_mysql_server_auth_info
int
password_used
;
int
password_used
;
const
char
*
host_or_ip
;
const
char
*
host_or_ip
;
unsigned
int
host_or_ip_length
;
unsigned
int
host_or_ip_length
;
void
*
thd
;
}
MYSQL_SERVER_AUTH_INFO
;
}
MYSQL_SERVER_AUTH_INFO
;
struct
st_mysql_auth
struct
st_mysql_auth
{
{
...
...
sql/sql_acl.cc
View file @
6305533d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment