@@ -22,6 +22,7 @@ present
22
22
################## FR 1.2: check if new sessions get the new vals
23
23
# Save the defaults
24
24
SET @orig_ssl_cipher = @@global.ssl_cipher;
25
+ SET @orig_tls_version = @@global.tls_version;
25
26
# in ssl_con
26
27
# check if the session has the original values
27
28
SHOW STATUS LIKE 'Ssl_cipher';
@@ -30,6 +31,7 @@ Ssl_cipher orig_cipher
30
31
# in default connection
31
32
# setting new values for ssl_cipher
32
33
SET GLOBAL ssl_cipher = "DHE-RSA-AES256-SHA256";
34
+ SET GLOBAL tls_version = "TLSv1.2";
33
35
ALTER INSTANCE RELOAD TLS;
34
36
# in ssl_new_con
35
37
# Save the new defaults
@@ -42,6 +44,7 @@ Ssl_cipher orig_cipher;
42
44
# cleanup
43
45
# in default connection
44
46
SET GLOBAL ssl_cipher = @orig_ssl_cipher;
47
+ SET GLOBAL tls_version = @orig_tls_version;
45
48
ALTER INSTANCE RELOAD TLS;
46
49
################## FR 1.5: new values effective only after RELOAD TLS
47
50
# Save the defaults
@@ -123,6 +126,7 @@ SET @orig_ssl_capath= @@global.ssl_capath;
123
126
SET @orig_ssl_crl= @@global.ssl_crl;
124
127
SET @orig_ssl_crlpath= @@global.ssl_crlpath;
125
128
SET @orig_ssl_cipher= @@global.ssl_cipher;
129
+ SET @orig_tls_cipher= @@global.tls_ciphersuites;
126
130
SET @orig_tls_version= @@global.tls_version;
127
131
# Must pass
128
132
SET GLOBAL ssl_ca = 'gizmo';
@@ -132,6 +136,7 @@ SET GLOBAL ssl_capath = 'gizmo';
132
136
SET GLOBAL ssl_crl = 'gizmo';
133
137
SET GLOBAL ssl_crlpath = 'gizmo';
134
138
SET GLOBAL ssl_cipher = 'gizmo';
139
+ SET GLOBAL tls_ciphersuites = 'gizmo';
135
140
SET GLOBAL tls_version = 'gizmo';
136
141
# Must fail
137
142
SET SESSION ssl_ca = 'gizmo';
@@ -148,21 +153,24 @@ SET SESSION ssl_crlpath = 'gizmo';
148
153
ERROR HY000: Variable 'ssl_crlpath' is a GLOBAL variable and should be set with SET GLOBAL
149
154
SET SESSION ssl_cipher = 'gizmo';
150
155
ERROR HY000: Variable 'ssl_cipher' is a GLOBAL variable and should be set with SET GLOBAL
156
+ SET SESSION tls_ciphersuites = 'gizmo';
157
+ ERROR HY000: Variable 'tls_ciphersuites' is a GLOBAL variable and should be set with SET GLOBAL
151
158
SET SESSION tls_version = 'gizmo';
152
159
ERROR HY000: Variable 'tls_version' is a GLOBAL variable and should be set with SET GLOBAL
153
- # FR6: Must return 8
160
+ # FR6: Must return 9
154
161
SELECT VARIABLE_NAME FROM performance_schema.session_status WHERE
155
162
VARIABLE_NAME IN
156
163
('Current_tls_ca', 'Current_tls_capath', 'Current_tls_cert',
157
164
'Current_tls_key', 'Current_tls_version', 'Current_tls_cipher',
158
- 'Current_tls_crl', 'Current_tls_crlpath') AND
165
+ 'Current_tls_ciphersuites', ' Current_tls_crl', 'Current_tls_crlpath') AND
159
166
VARIABLE_VALUE != 'gizmo'
160
167
ORDER BY VARIABLE_NAME;
161
168
VARIABLE_NAME
162
169
Current_tls_ca
163
170
Current_tls_capath
164
171
Current_tls_cert
165
172
Current_tls_cipher
173
+ Current_tls_ciphersuites
166
174
Current_tls_crl
167
175
Current_tls_crlpath
168
176
Current_tls_key
@@ -175,6 +183,7 @@ SET GLOBAL ssl_capath = @orig_ssl_capath;
175
183
SET GLOBAL ssl_crl = @orig_ssl_crl;
176
184
SET GLOBAL ssl_crlpath = @orig_ssl_crlpath;
177
185
SET GLOBAL ssl_cipher = @orig_ssl_cipher;
186
+ SET GLOBAL tls_ciphersuites = @orig_tls_ciphersuites;
178
187
SET GLOBAL tls_version = @orig_tls_version;
179
188
################## FR8: X plugin do not follow
180
189
# Save the defaults
0 commit comments