Commit 421bbdcf authored by unknown's avatar unknown

Merge a couple more fixes from 10.0-base to 10.0

parents 5fe8e9f2 490d2a42
if (`select @@debug_sync not like 'ON %'`) {
--skip Needs a debug_sync enabled
if (`SELECT COUNT(*) = 0 FROM information_schema.session_variables WHERE
variable_name = 'debug_sync' AND variable_value LIKE 'ON %'`) {
--skip Needs debug_sync enabled
}
-- require r/not_openssl.require
disable_query_log;
show variables like "have_openssl";
enable_query_log;
if (`select @@have_ssl = 'YES'`)
{
skip only without SSL;
}
Variable_name Value
have_openssl NO
-- source include/not_openssl.inc
-- source include/not_ssl.inc
#
# Test output from des_encrypt and des_decrypt when server is
......
......@@ -660,6 +660,7 @@ SHOW_COMP_OPTION have_ssl, have_symlink, have_dlopen, have_query_cache;
SHOW_COMP_OPTION have_geometry, have_rtree_keys;
SHOW_COMP_OPTION have_crypt, have_compress;
SHOW_COMP_OPTION have_profiling;
SHOW_COMP_OPTION have_openssl;
/* Thread specific variables */
......@@ -7600,8 +7601,13 @@ static int mysql_init_variables(void)
#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
have_ssl=SHOW_OPTION_YES;
#if HAVE_YASSL
have_openssl= SHOW_OPTION_NO;
#else
have_ssl=SHOW_OPTION_NO;
have_openssl= SHOW_OPTION_YES;
#endif
#else
have_openssl= have_ssl= SHOW_OPTION_NO;
#endif
#ifdef HAVE_BROKEN_REALPATH
have_symlink=SHOW_OPTION_NO;
......
......@@ -299,6 +299,7 @@ extern SHOW_COMP_OPTION have_query_cache;
extern SHOW_COMP_OPTION have_geometry, have_rtree_keys;
extern SHOW_COMP_OPTION have_crypt;
extern SHOW_COMP_OPTION have_compress;
extern SHOW_COMP_OPTION have_openssl;
/*
Prototypes for helper functions
......
......@@ -3326,7 +3326,7 @@ static Sys_var_have Sys_have_geometry(
static Sys_var_have Sys_have_openssl(
"have_openssl", "have_openssl",
READ_ONLY GLOBAL_VAR(have_ssl), NO_CMD_LINE);
READ_ONLY GLOBAL_VAR(have_openssl), NO_CMD_LINE);
static Sys_var_have Sys_have_profiling(
"have_profiling", "have_profiling",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment