Skip to content

Commit 891707b

Browse files
Robert Golebiowskibjornmu
authored andcommitted
Bug #22908232 A TYPO IN MYSQL_KEYRING_FILE_SERVICE
(cherry picked from commit a8a90724a0dbfe07d78cc4b20747b9317b0c9217)
1 parent bc1da6d commit 891707b

File tree

6 files changed

+36
-16
lines changed

6 files changed

+36
-16
lines changed

include/mysql/service_mysql_keyring.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
extern "C" {
2121
#endif
2222

23-
extern struct mysql_keyring_file_service_st
23+
extern struct mysql_keyring_service_st
2424
{
2525
int (*my_key_store_func)(const char *, const char *, const char *,
2626
const void *, size_t);
@@ -29,21 +29,21 @@ extern struct mysql_keyring_file_service_st
2929
int (*my_key_remove_func)(const char *, const char *);
3030
int (*my_key_generate_func)(const char *, const char *, const char *,
3131
size_t);
32-
} *mysql_keyring_file_service;
32+
} *mysql_keyring_service;
3333

3434
#ifdef MYSQL_DYNAMIC_PLUGIN
3535

3636
#define my_key_store(key_id, key_type, user_id, key, key_len) \
37-
mysql_keyring_file_service->my_key_store_func(key_id, key_type, user_id, key, \
38-
key_len)
37+
mysql_keyring_service->my_key_store_func(key_id, key_type, user_id, key, \
38+
key_len)
3939
#define my_key_fetch(key_id, key_type, user_id, key, key_len) \
40-
mysql_keyring_file_service->my_key_fetch_func(key_id, key_type, user_id, key, \
41-
key_len)
40+
mysql_keyring_service->my_key_fetch_func(key_id, key_type, user_id, key, \
41+
key_len)
4242
#define my_key_remove(key_id, user_id) \
43-
mysql_keyring_file_service->my_key_remove_func(key_id, user_id)
43+
mysql_keyring_service->my_key_remove_func(key_id, user_id)
4444
#define my_key_generate(key_id, key_type, user_id, key_len) \
45-
mysql_keyring_file_service->my_key_generate_func(key_id, key_type, user_id, \
46-
key_len)
45+
mysql_keyring_service->my_key_generate_func(key_id, key_type, user_id, \
46+
key_len)
4747
#else
4848

4949
int my_key_store(const char *, const char *, const char *, const void *, size_t);

include/mysql/services.h.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@
489489
int mysql_release_locking_service_locks(void* opaque_thd,
490490
const char* lock_namespace);
491491
#include <mysql/service_mysql_keyring.h>
492-
extern struct mysql_keyring_file_service_st
492+
extern struct mysql_keyring_service_st
493493
{
494494
int (*my_key_store_func)(const char *, const char *, const char *,
495495
const void *, size_t);
@@ -498,7 +498,7 @@
498498
int (*my_key_remove_func)(const char *, const char *);
499499
int (*my_key_generate_func)(const char *, const char *, const char *,
500500
size_t);
501-
} *mysql_keyring_file_service;
501+
} *mysql_keyring_service;
502502
int my_key_store(const char *, const char *, const char *, const void *, size_t);
503503
int my_key_fetch(const char *, char **, const char *, void **,
504504
size_t *);

include/service_versions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
#define VERSION_locking_service 0x0100
3636
#define VERSION_srv_session_info_service 0x0100
3737
#define VERSION_srv_session_service 0x0100
38-
#define VERSION_mysql_keyring_file_service 0x0100
38+
#define VERSION_mysql_keyring_service 0x0100

libservices/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -31,7 +31,8 @@ SET(MYSQLSERVICES_SOURCES
3131
srv_session_info_service.c
3232
rpl_transaction_ctx_service.c
3333
rpl_transaction_write_set_service.c
34-
security_context_service.c)
34+
security_context_service.c
35+
mysql_keyring_service.c)
3536

3637
ADD_CONVENIENCE_LIBRARY(mysqlservices ${MYSQLSERVICES_SOURCES})
3738
INSTALL(TARGETS mysqlservices DESTINATION ${INSTALL_LIBDIR} COMPONENT Development)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
2+
3+
This program is free software; you can redistribute it and/or
4+
modify it under the terms of the GNU General Public License as
5+
published by the Free Software Foundation; version 2 of the
6+
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+
17+
#include <service_versions.h>
18+
SERVICE_VERSION *mysql_keyring_service= (void*)VERSION_mysql_keyring_service;
19+

sql/sql_plugin_services.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static struct security_context_service_st security_context_handler={
153153
};
154154
#endif
155155

156-
static struct mysql_keyring_file_service_st mysql_keyring_file_handler= {
156+
static struct mysql_keyring_service_st mysql_keyring_handler= {
157157
my_key_store,
158158
my_key_fetch,
159159
my_key_remove,
@@ -189,6 +189,6 @@ static struct st_service_ref list_of_services[]=
189189
VERSION_security_context_service, &security_context_handler },
190190
#endif
191191
{ "mysql_locking_service", VERSION_locking_service, &locking_service_handler },
192-
{ "mysql_keyring_service", VERSION_mysql_keyring_file_service, &mysql_keyring_file_handler}
192+
{ "mysql_keyring_service", VERSION_mysql_keyring_service, &mysql_keyring_handler}
193193
};
194194

0 commit comments

Comments
 (0)