mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 09:15:30 +02:00
Merge tag 'mariadb-10.0.20' into 10.1
This commit is contained in:
commit
658992699b
390 changed files with 7196 additions and 4464 deletions
|
|
@ -15,4 +15,4 @@
|
|||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
MYSQL_ADD_PLUGIN(dialog dialog.c ${CMAKE_SOURCE_DIR}/libmysql/get_password.c
|
||||
MODULE_ONLY COMPONENT SharedLibraries)
|
||||
MODULE_ONLY COMPONENT ClientPlugins)
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@
|
|||
the answer back to the server. No encryption is involved,
|
||||
the answers are sent in clear text.
|
||||
*/
|
||||
#define _GNU_SOURCE 1 /* for RTLD_DEFAULT */
|
||||
|
||||
#include <my_global.h>
|
||||
#include <mysql/client_plugin.h>
|
||||
#include <mysql.h>
|
||||
|
|
|
|||
|
|
@ -30,4 +30,4 @@ MYSQL_ADD_PLUGIN(qa_auth_client qa_auth_client.c
|
|||
MYSQL_ADD_PLUGIN(auth_0x0100 auth_0x0100.c MODULE_ONLY COMPONENT Test)
|
||||
|
||||
MYSQL_ADD_PLUGIN(mysql_clear_password clear_password_client.c
|
||||
MODULE_ONLY COMPONENT SharedLibraries)
|
||||
MODULE_ONLY COMPONENT ClientPlugins)
|
||||
|
|
|
|||
|
|
@ -6,9 +6,7 @@ IF(WIN32)
|
|||
ENDIF()
|
||||
|
||||
#Remove -fno-implicit-templates from compiler flags(handlersocket would not work with it)
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
ENDIF()
|
||||
STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
|
||||
INCLUDE_DIRECTORIES(libhsclient)
|
||||
|
||||
|
|
|
|||
|
|
@ -1128,6 +1128,8 @@ static size_t escape_string(const char *str, unsigned int len,
|
|||
*(result++)= '\\';
|
||||
*(result++)= '\\';
|
||||
}
|
||||
else if (is_space(*str))
|
||||
*(result++)= ' ';
|
||||
else
|
||||
*(result++)= *str;
|
||||
str++;
|
||||
|
|
@ -1183,9 +1185,15 @@ static size_t escape_string_hide_passwords(const char *str, unsigned int len,
|
|||
for (c=0; c<d_len; c++)
|
||||
result[c]= is_space(str[c]) ? ' ' : str[c];
|
||||
|
||||
memmove(result + d_len, "*****", 5);
|
||||
result+= d_len + 5;
|
||||
b_char= *(next_s++);
|
||||
if (*next_s)
|
||||
{
|
||||
memmove(result + d_len, "*****", 5);
|
||||
result+= d_len + 5;
|
||||
b_char= *(next_s++);
|
||||
}
|
||||
else
|
||||
result+= d_len;
|
||||
|
||||
while (*next_s)
|
||||
{
|
||||
if (*next_s == b_char)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ IF(WIN32)
|
|||
|
||||
MYSQL_ADD_PLUGIN(authentication_windows_client ${PLUGIN_SOURCES} ${HEADERS}
|
||||
LINK_LIBRARIES Secur32
|
||||
MODULE_ONLY COMPONENT SharedLibraries)
|
||||
MODULE_ONLY COMPONENT ClientPlugins)
|
||||
|
||||
#IF(MSVC)
|
||||
# INSTALL_DEBUG_TARGET(auth_win_client DESTINATION ${INSTALL_LIBDIR}/debug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue