From 3e9446a7426d13c8cc53937b0dc9a8ce17127ae3 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 13 Jul 2013 17:48:06 +0200 Subject: SHA1 service (because mysql_ssl library is built with -fvisibility=hidden) --- libservices/CMakeLists.txt | 1 + libservices/HOWTO | 2 +- libservices/my_sha1_service.c | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 libservices/my_sha1_service.c (limited to 'libservices') diff --git a/libservices/CMakeLists.txt b/libservices/CMakeLists.txt index 1583d1ff792..3ffd72aea96 100644 --- a/libservices/CMakeLists.txt +++ b/libservices/CMakeLists.txt @@ -22,6 +22,7 @@ SET(MYSQLSERVICES_SOURCES my_thread_scheduler_service.c progress_report_service.c debug_sync_service.c + my_sha1_service.c kill_statement_service.c) ADD_CONVENIENCE_LIBRARY(mysqlservices ${MYSQLSERVICES_SOURCES}) diff --git a/libservices/HOWTO b/libservices/HOWTO index 7dcfb6d9583..512cdb43c99 100644 --- a/libservices/HOWTO +++ b/libservices/HOWTO @@ -76,7 +76,7 @@ it should also declare all the accompanying data structures, as necessary ================================================================== /* GPL header */ #include - SERVICE_VERSION *foo_service= (void*)VERSION_foo; + SERVICE_VERSION foo_service= (void*)VERSION_foo; ================================================================== 7. add the new file to libservices/CMakeLists.txt (MYSQLSERVICES_SOURCES) diff --git a/libservices/my_sha1_service.c b/libservices/my_sha1_service.c new file mode 100644 index 00000000000..196c1939082 --- /dev/null +++ b/libservices/my_sha1_service.c @@ -0,0 +1,18 @@ +/* Copyright (c) 2013 Monty Program Ab + Use is subject to license terms. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + +#include +SERVICE_VERSION my_sha1_service= (void*)VERSION_my_sha1; -- cgit v1.2.1