Lines 1-6
Link Here
|
1 |
--- sql/sys_vars.cc.orig 2021-12-17 16:07:27 UTC |
1 |
--- sql/sys_vars.cc.orig 2022-07-06 21:36:34 UTC |
2 |
+++ sql/sys_vars.cc |
2 |
+++ sql/sys_vars.cc |
3 |
@@ -1977,7 +1977,7 @@ static Sys_var_ulong Sys_connect_timeout( |
3 |
@@ -2039,7 +2039,7 @@ static Sys_var_ulong Sys_connect_timeout( |
4 |
"The number of seconds the mysqld server is waiting for a connect " |
4 |
"The number of seconds the mysqld server is waiting for a connect " |
5 |
"packet before responding with 'Bad handshake'", |
5 |
"packet before responding with 'Bad handshake'", |
6 |
GLOBAL_VAR(connect_timeout), CMD_LINE(REQUIRED_ARG), |
6 |
GLOBAL_VAR(connect_timeout), CMD_LINE(REQUIRED_ARG), |
Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
static Sys_var_ulong Sys_information_schema_stats_expiry( |
10 |
static Sys_var_ulong Sys_information_schema_stats_expiry( |
11 |
"information_schema_stats_expiry", |
11 |
"information_schema_stats_expiry", |
12 |
@@ -3093,7 +3093,7 @@ static Sys_var_ulong Sys_net_read_timeout( |
12 |
@@ -3189,7 +3189,7 @@ static Sys_var_ulong Sys_net_read_timeout( |
13 |
"Number of seconds to wait for more data from a connection before " |
13 |
"Number of seconds to wait for more data from a connection before " |
14 |
"aborting the read", |
14 |
"aborting the read", |
15 |
SESSION_VAR(net_read_timeout), CMD_LINE(REQUIRED_ARG), |
15 |
SESSION_VAR(net_read_timeout), CMD_LINE(REQUIRED_ARG), |
Lines 18-24
Link Here
|
18 |
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(nullptr), |
18 |
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(nullptr), |
19 |
ON_UPDATE(fix_net_read_timeout)); |
19 |
ON_UPDATE(fix_net_read_timeout)); |
20 |
|
20 |
|
21 |
@@ -3114,7 +3114,7 @@ static Sys_var_ulong Sys_net_write_timeout( |
21 |
@@ -3210,7 +3210,7 @@ static Sys_var_ulong Sys_net_write_timeout( |
22 |
"Number of seconds to wait for a block to be written to a connection " |
22 |
"Number of seconds to wait for a block to be written to a connection " |
23 |
"before aborting the write", |
23 |
"before aborting the write", |
24 |
SESSION_VAR(net_write_timeout), CMD_LINE(REQUIRED_ARG), |
24 |
SESSION_VAR(net_write_timeout), CMD_LINE(REQUIRED_ARG), |
Lines 27-70
Link Here
|
27 |
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(nullptr), |
27 |
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(nullptr), |
28 |
ON_UPDATE(fix_net_write_timeout)); |
28 |
ON_UPDATE(fix_net_write_timeout)); |
29 |
|
29 |
|
30 |
@@ -4876,6 +4876,7 @@ static Sys_var_ulong Sys_max_execution_time( |
|
|
31 |
HINT_UPDATEABLE SESSION_VAR(max_execution_time), CMD_LINE(REQUIRED_ARG), |
32 |
VALID_RANGE(0, ULONG_MAX), DEFAULT(0), BLOCK_SIZE(1)); |
33 |
|
34 |
+#ifndef LIBRESSL_VERSION_NUMBER |
35 |
static bool update_fips_mode(sys_var *, THD *, enum_var_type) { |
36 |
char ssl_err_string[OPENSSL_ERROR_LENGTH] = {'\0'}; |
37 |
if (set_fips_mode(opt_ssl_fips_mode, ssl_err_string) != 1) { |
38 |
@@ -4887,14 +4888,30 @@ static bool update_fips_mode(sys_var *, THD *, enum_va |
39 |
} |
40 |
} |
41 |
|
42 |
+#endif |
43 |
+ |
44 |
+#if defined(LIBRESSL_VERSION_NUMBER) |
45 |
+static const char *ssl_fips_mode_names[] = {"OFF", 0}; |
46 |
+#else |
47 |
static const char *ssl_fips_mode_names[] = {"OFF", "ON", "STRICT", nullptr}; |
48 |
+#endif |
49 |
static Sys_var_enum Sys_ssl_fips_mode( |
50 |
"ssl_fips_mode", |
51 |
"SSL FIPS mode (applies only for OpenSSL); " |
52 |
- "permitted values are: OFF, ON, STRICT", |
53 |
+#ifndef LIBRESSL_VERSION_NUMBER |
54 |
+ "permitted values are: OFF, ON, STRICT", |
55 |
+#else |
56 |
+ "permitted values are: OFF", |
57 |
+#endif |
58 |
GLOBAL_VAR(opt_ssl_fips_mode), CMD_LINE(REQUIRED_ARG, OPT_SSL_FIPS_MODE), |
59 |
ssl_fips_mode_names, DEFAULT(0), NO_MUTEX_GUARD, NOT_IN_BINLOG, |
60 |
- ON_CHECK(nullptr), ON_UPDATE(update_fips_mode), nullptr); |
61 |
+ ON_CHECK(NULL), |
62 |
+#ifndef LIBRESSL_VERSION_NUMBER |
63 |
+ ON_UPDATE(update_fips_mode), |
64 |
+#else |
65 |
+ ON_UPDATE(NULL), |
66 |
+#endif |
67 |
+ NULL); |
68 |
|
69 |
static Sys_var_bool Sys_auto_generate_certs( |
70 |
"auto_generate_certs", |