Commit d787e52d authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-3927 Add variable "have yassl"

have_openssl variable was ON even when OpenSSL was not used (but YaSSL was).
fix that, so that have_openssl really corresponds to OpenSSL

rename not_openssl.inc to not_ssl.inc and fix the test accordingly.
parent 21ae8572
-- 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 # Test output from des_encrypt and des_decrypt when server is
......
...@@ -656,6 +656,7 @@ SHOW_COMP_OPTION have_ssl, have_symlink, have_dlopen, have_query_cache; ...@@ -656,6 +656,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_geometry, have_rtree_keys;
SHOW_COMP_OPTION have_crypt, have_compress; SHOW_COMP_OPTION have_crypt, have_compress;
SHOW_COMP_OPTION have_profiling; SHOW_COMP_OPTION have_profiling;
SHOW_COMP_OPTION have_openssl;
/* Thread specific variables */ /* Thread specific variables */
...@@ -7366,8 +7367,13 @@ static int mysql_init_variables(void) ...@@ -7366,8 +7367,13 @@ static int mysql_init_variables(void)
#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY) #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
have_ssl=SHOW_OPTION_YES; have_ssl=SHOW_OPTION_YES;
#if HAVE_YASSL
have_openssl= SHOW_OPTION_NO;
#else #else
have_ssl=SHOW_OPTION_NO; have_openssl= SHOW_OPTION_YES;
#endif
#else
have_openssl= have_ssl= SHOW_OPTION_NO;
#endif #endif
#ifdef HAVE_BROKEN_REALPATH #ifdef HAVE_BROKEN_REALPATH
have_symlink=SHOW_OPTION_NO; have_symlink=SHOW_OPTION_NO;
......
...@@ -297,6 +297,7 @@ extern SHOW_COMP_OPTION have_query_cache; ...@@ -297,6 +297,7 @@ extern SHOW_COMP_OPTION have_query_cache;
extern SHOW_COMP_OPTION have_geometry, have_rtree_keys; extern SHOW_COMP_OPTION have_geometry, have_rtree_keys;
extern SHOW_COMP_OPTION have_crypt; extern SHOW_COMP_OPTION have_crypt;
extern SHOW_COMP_OPTION have_compress; extern SHOW_COMP_OPTION have_compress;
extern SHOW_COMP_OPTION have_openssl;
/* /*
Prototypes for helper functions Prototypes for helper functions
......
...@@ -3074,7 +3074,7 @@ static Sys_var_have Sys_have_geometry( ...@@ -3074,7 +3074,7 @@ static Sys_var_have Sys_have_geometry(
static Sys_var_have Sys_have_openssl( static Sys_var_have Sys_have_openssl(
"have_openssl", "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( static Sys_var_have Sys_have_profiling(
"have_profiling", "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