mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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.
This commit is contained in:
parent
6c3de76ad5
commit
6a742fc3b1
7 changed files with 14 additions and 9 deletions
|
@ -1,4 +0,0 @@
|
|||
-- require r/not_openssl.require
|
||||
disable_query_log;
|
||||
show variables like "have_openssl";
|
||||
enable_query_log;
|
4
mysql-test/include/not_ssl.inc
Normal file
4
mysql-test/include/not_ssl.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
if (`select @@have_ssl = 'YES'`)
|
||||
{
|
||||
skip only without SSL;
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
Variable_name Value
|
||||
have_openssl NO
|
|
@ -1,4 +1,4 @@
|
|||
-- source include/not_openssl.inc
|
||||
-- source include/not_ssl.inc
|
||||
|
||||
#
|
||||
# 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;
|
|||
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 */
|
||||
|
||||
|
@ -7366,8 +7367,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;
|
||||
|
|
|
@ -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_crypt;
|
||||
extern SHOW_COMP_OPTION have_compress;
|
||||
extern SHOW_COMP_OPTION have_openssl;
|
||||
|
||||
/*
|
||||
Prototypes for helper functions
|
||||
|
|
|
@ -3074,7 +3074,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",
|
||||
|
|
Loading…
Reference in a new issue