Commit 83c08660 authored by Sergei Golubchik's avatar Sergei Golubchik

new read-only server variable version_ssl_library

parent 0d676fa0
......@@ -63,7 +63,8 @@ sub skip_combinations {
$skip{'include/check_ipv6.inc'} = 'No IPv6' unless ipv6_ok();
$skip{'t/openssl_6975.test'} = 'no or too old openssl'
unless ! IS_WINDOWS and ! system "openssl ciphers TLSv1.2 >/dev/null 2>&1";
unless $::mysqld_variables{'version-ssl-library'} =~ /OpenSSL (\S+)/
and $1 ge "1.0.1";
%skip;
}
......
......@@ -21,14 +21,14 @@ select * from information_schema.system_variables
'have_openssl',
'have_symlink',
'hostname',
'large_files_support',
'large_files_support', 'log_tc_size',
'lower_case_file_system',
'lower_case_table_names',
'open_files_limit',
'system_time_zone',
'version_comment',
'version_compile_machine', 'version_compile_os',
'version_malloc_library', 'log_tc_size', 'version'
'version_malloc_library', 'version_ssl_library', 'version'
)
order by variable_name;
......@@ -49,7 +49,7 @@ select VARIABLE_NAME, VARIABLE_SCOPE, VARIABLE_TYPE, VARIABLE_COMMENT,
'system_time_zone',
'version_comment',
'version_compile_machine', 'version_compile_os',
'version_malloc_library', 'version'
'version_malloc_library', 'version_ssl_library', 'version'
)
order by variable_name;
......
......@@ -11,14 +11,14 @@ variable_name not in (
'have_openssl',
'have_symlink',
'hostname',
'large_files_support',
'large_files_support', 'log_tc_size',
'lower_case_file_system',
'lower_case_table_names',
'open_files_limit',
'system_time_zone',
'version_comment',
'version_compile_machine', 'version_compile_os',
'version_malloc_library', 'log_tc_size', 'version'
'version_malloc_library', 'version_ssl_library', 'version'
)
order by variable_name;
VARIABLE_NAME AUTOCOMMIT
......@@ -4026,7 +4026,7 @@ where variable_name in (
'system_time_zone',
'version_comment',
'version_compile_machine', 'version_compile_os',
'version_malloc_library', 'version'
'version_malloc_library', 'version_ssl_library', 'version'
)
order by variable_name;
VARIABLE_NAME HAVE_OPENSSL
......@@ -4159,6 +4159,16 @@ NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST NULL
READ_ONLY YES
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME VERSION_SSL_LIBRARY
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE VARCHAR
VARIABLE_COMMENT Version of the used SSL library
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST NULL
READ_ONLY YES
COMMAND_LINE_ARGUMENT NULL
select VARIABLE_NAME, GLOBAL_VALUE_ORIGIN, VARIABLE_SCOPE, VARIABLE_TYPE,
VARIABLE_COMMENT, ENUM_VALUE_LIST, READ_ONLY, COMMAND_LINE_ARGUMENT
from information_schema.system_variables
......
......@@ -11,14 +11,14 @@ variable_name not in (
'have_openssl',
'have_symlink',
'hostname',
'large_files_support',
'large_files_support', 'log_tc_size',
'lower_case_file_system',
'lower_case_table_names',
'open_files_limit',
'system_time_zone',
'version_comment',
'version_compile_machine', 'version_compile_os',
'version_malloc_library', 'log_tc_size', 'version'
'version_malloc_library', 'version_ssl_library', 'version'
)
order by variable_name;
VARIABLE_NAME AUTOCOMMIT
......@@ -4754,7 +4754,7 @@ where variable_name in (
'system_time_zone',
'version_comment',
'version_compile_machine', 'version_compile_os',
'version_malloc_library', 'version'
'version_malloc_library', 'version_ssl_library', 'version'
)
order by variable_name;
VARIABLE_NAME HAVE_OPENSSL
......@@ -4887,6 +4887,16 @@ NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST NULL
READ_ONLY YES
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME VERSION_SSL_LIBRARY
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE VARCHAR
VARIABLE_COMMENT Version of the used SSL library
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST NULL
READ_ONLY YES
COMMAND_LINE_ARGUMENT NULL
select VARIABLE_NAME, GLOBAL_VALUE_ORIGIN, VARIABLE_SCOPE, VARIABLE_TYPE,
VARIABLE_COMMENT, ENUM_VALUE_LIST, READ_ONLY, COMMAND_LINE_ARGUMENT
from information_schema.system_variables
......
set @@global.version_malloc_library=1;
ERROR HY000: Variable 'version_malloc_library' is a read only variable
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set @@global.version_malloc_library=1;
......@@ -3377,6 +3377,22 @@ static Sys_var_charptr Sys_malloc_library(
READ_ONLY GLOBAL_VAR(malloc_library), CMD_LINE_HELP_ONLY,
IN_SYSTEM_CHARSET, DEFAULT(MALLOC_LIBRARY));
#ifdef HAVE_YASSL
#include <openssl/ssl.h>
#define SSL_LIBRARY "YaSSL " YASSL_VERSION
#elif HAVE_OPENSSL
#include <openssl/opensslv.h>
#define SSL_LIBRARY OPENSSL_VERSION_TEXT
#else
#error No SSL?
#endif
static char *ssl_library;
static Sys_var_charptr Sys_ssl_library(
"version_ssl_library", "Version of the used SSL library",
READ_ONLY GLOBAL_VAR(ssl_library), CMD_LINE_HELP_ONLY,
IN_SYSTEM_CHARSET, DEFAULT(SSL_LIBRARY));
static Sys_var_ulong Sys_net_wait_timeout(
"wait_timeout",
"The number of seconds the server waits for activity on a "
......
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