Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
83c08660
Commit
83c08660
authored
Jan 09, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new read-only server variable version_ssl_library
parent
0d676fa0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
10 deletions
+51
-10
mysql-test/suite.pm
mysql-test/suite.pm
+2
-1
mysql-test/suite/sys_vars/inc/sysvars_server.inc
mysql-test/suite/sys_vars/inc/sysvars_server.inc
+3
-3
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
+13
-3
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
...l-test/suite/sys_vars/r/sysvars_server_notembedded.result
+13
-3
mysql-test/suite/sys_vars/r/version_ssl_library_basic.result
mysql-test/suite/sys_vars/r/version_ssl_library_basic.result
+2
-0
mysql-test/suite/sys_vars/t/version_ssl_library_basic.test
mysql-test/suite/sys_vars/t/version_ssl_library_basic.test
+2
-0
sql/sys_vars.cc
sql/sys_vars.cc
+16
-0
No files found.
mysql-test/suite.pm
View file @
83c08660
...
...
@@ -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
;
}
...
...
mysql-test/suite/sys_vars/inc/sysvars_server.inc
View file @
83c08660
...
...
@@ -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
;
...
...
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
View file @
83c08660
...
...
@@ -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
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
View file @
83c08660
...
...
@@ -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
...
...
mysql-test/suite/sys_vars/r/version_ssl_library_basic.result
0 → 100644
View file @
83c08660
set @@global.version_malloc_library=1;
ERROR HY000: Variable 'version_malloc_library' is a read only variable
mysql-test/suite/sys_vars/t/version_ssl_library_basic.test
0 → 100644
View file @
83c08660
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
set
@@
global
.
version_malloc_library
=
1
;
sql/sys_vars.cc
View file @
83c08660
...
...
@@ -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 "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment