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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2395adfb
Commit
2395adfb
authored
Aug 06, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ssl tests: update ciphers as in 10.2
to make tests pass on stretch with libssl1.0-dev
parent
b7381526
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
23 deletions
+24
-23
mysql-test/r/openssl_1.result
mysql-test/r/openssl_1.result
+2
-2
mysql-test/r/openssl_6975,tlsv10.result
mysql-test/r/openssl_6975,tlsv10.result
+5
-5
mysql-test/r/openssl_6975,tlsv12.result
mysql-test/r/openssl_6975,tlsv12.result
+3
-3
mysql-test/r/ssl.result
mysql-test/r/ssl.result
+2
-2
mysql-test/t/openssl_1.test
mysql-test/t/openssl_1.test
+2
-2
mysql-test/t/openssl_6975.test
mysql-test/t/openssl_6975.test
+8
-7
mysql-test/t/ssl.test
mysql-test/t/ssl.test
+2
-2
No files found.
mysql-test/r/openssl_1.result
View file @
2395adfb
...
...
@@ -196,9 +196,9 @@ SSL error: Unable to get private key from 'MYSQL_TEST_DIR/std_data/client-cert.p
mysqldump: Got error: 2026: "SSL connection error: Unable to get private key" when trying to connect
DROP TABLE t1;
Variable_name Value
Ssl_cipher
DHE-RSA-
AES256-SHA
Ssl_cipher AES256-SHA
Variable_name Value
Ssl_cipher
EDH-RSA-DES-CBC3
-SHA
Ssl_cipher
AES128
-SHA
select 'is still running; no cipher request crashed the server' as result from dual;
result
is still running; no cipher request crashed the server
...
...
mysql-test/r/openssl_6975,tlsv10.result
View file @
2395adfb
create user ssl_sslv3@localhost;
grant select on test.* to ssl_sslv3@localhost require cipher "
RC4
-SHA";
grant select on test.* to ssl_sslv3@localhost require cipher "
AES128
-SHA";
create user ssl_tls12@localhost;
grant select on test.* to ssl_tls12@localhost require cipher "AES128-SHA256";
TLS1.2 ciphers: user is ok with any cipher
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
TLS1.2 ciphers: user requires SSLv3 cipher
RC4
-SHA
TLS1.2 ciphers: user requires SSLv3 cipher
AES128
-SHA
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
TLS1.2 ciphers: user requires TLSv1.2 cipher AES128-SHA256
...
...
@@ -13,12 +13,12 @@ ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
SSLv3 ciphers: user is ok with any cipher
Variable_name Value
Ssl_cipher
RC4
-SHA
Ssl_cipher
AES256
-SHA
Variable_name Value
Ssl_cipher DHE-RSA-AES256-SHA
SSLv3 ciphers: user requires SSLv3 cipher
RC4
-SHA
SSLv3 ciphers: user requires SSLv3 cipher
AES128
-SHA
Variable_name Value
Ssl_cipher
RC4
-SHA
Ssl_cipher
AES128
-SHA
ERROR 1045 (28000): Access denied for user 'ssl_sslv3'@'localhost' (using password: NO)
SSLv3 ciphers: user requires TLSv1.2 cipher AES128-SHA256
ERROR 1045 (28000): Access denied for user 'ssl_tls12'@'localhost' (using password: NO)
...
...
mysql-test/r/openssl_6975,tlsv12.result
View file @
2395adfb
create user ssl_sslv3@localhost;
grant select on test.* to ssl_sslv3@localhost require cipher "
RC4
-SHA";
grant select on test.* to ssl_sslv3@localhost require cipher "
AES128
-SHA";
create user ssl_tls12@localhost;
grant select on test.* to ssl_tls12@localhost require cipher "AES128-SHA256";
TLS1.2 ciphers: user is ok with any cipher
...
...
@@ -7,7 +7,7 @@ Variable_name Value
Ssl_cipher AES128-SHA256
Variable_name Value
Ssl_cipher DHE-RSA-AES256-GCM-SHA384
TLS1.2 ciphers: user requires SSLv3 cipher
RC4
-SHA
TLS1.2 ciphers: user requires SSLv3 cipher
AES128
-SHA
ERROR 1045 (28000): Access denied for user 'ssl_sslv3'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'ssl_sslv3'@'localhost' (using password: NO)
TLS1.2 ciphers: user requires TLSv1.2 cipher AES128-SHA256
...
...
@@ -17,7 +17,7 @@ ERROR 1045 (28000): Access denied for user 'ssl_tls12'@'localhost' (using passwo
SSLv3 ciphers: user is ok with any cipher
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
SSLv3 ciphers: user requires SSLv3 cipher
RC4
-SHA
SSLv3 ciphers: user requires SSLv3 cipher
AES128
-SHA
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
ERROR 2026 (HY000): SSL connection error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
SSLv3 ciphers: user requires TLSv1.2 cipher AES128-SHA256
...
...
mysql-test/r/ssl.result
View file @
2395adfb
...
...
@@ -2173,7 +2173,7 @@ select 'still connected?';
still connected?
still connected?
create user mysqltest_1@localhost;
grant usage on mysqltest.* to mysqltest_1@localhost require cipher "
EDH-RSA-DES-CBC3
-SHA";
grant usage on mysqltest.* to mysqltest_1@localhost require cipher "
AES256
-SHA";
Variable_name Value
Ssl_cipher
EDH-RSA-DES-CBC3
-SHA
Ssl_cipher
AES256
-SHA
drop user mysqltest_1@localhost;
mysql-test/t/openssl_1.test
View file @
2395adfb
...
...
@@ -221,8 +221,8 @@ DROP TABLE t1;
#
# Common ciphers to openssl and yassl
--
exec
$MYSQL
--
host
=
localhost
-
e
"SHOW STATUS LIKE 'Ssl_cipher';"
--
ssl
-
cipher
=
DHE
-
RSA
-
AES256
-
SHA
--
exec
$MYSQL
--
host
=
localhost
-
e
"SHOW STATUS LIKE 'Ssl_cipher';"
--
ssl
-
cipher
=
EDH
-
RSA
-
DES
-
CBC3
-
SHA
--
exec
$MYSQL
--
host
=
localhost
-
e
"SHOW STATUS LIKE 'Ssl_cipher';"
--
ssl
-
cipher
=
AES256
-
SHA
--
exec
$MYSQL
--
host
=
localhost
-
e
"SHOW STATUS LIKE 'Ssl_cipher';"
--
ssl
-
cipher
=
AES128
-
SHA
--
disable_query_log
--
disable_result_log
...
...
mysql-test/t/openssl_6975.test
View file @
2395adfb
...
...
@@ -8,7 +8,8 @@ source include/have_ssl_communication.inc;
# this is OpenSSL test.
create
user
ssl_sslv3
@
localhost
;
grant
select
on
test
.*
to
ssl_sslv3
@
localhost
require
cipher
"RC4-SHA"
;
# grant select on test.* to ssl_sslv3@localhost require cipher "AES128-SHA";
grant
select
on
test
.*
to
ssl_sslv3
@
localhost
require
cipher
"AES128-SHA"
;
create
user
ssl_tls12
@
localhost
;
grant
select
on
test
.*
to
ssl_tls12
@
localhost
require
cipher
"AES128-SHA256"
;
...
...
@@ -17,9 +18,9 @@ let $mysql=$MYSQL --ssl-key=$MYSQL_TEST_DIR/std_data/client-key.pem --ssl-cert=$
disable_abort_on_error
;
echo
TLS1
.
2
ciphers
:
user
is
ok
with
any
cipher
;
exec
$mysql
--
ssl
-
cipher
=
AES128
-
SHA256
;
--
replace_result
DHE
-
RSA
-
CHACHA20
-
POLY1305
DHE
-
RSA
-
AES256
-
GCM
-
SHA384
--
replace_result
DHE
-
RSA
-
CHACHA20
-
POLY1305
DHE
-
RSA
-
AES256
-
GCM
-
SHA384
ECDHE
-
RSA
-
AES256
-
GCM
-
SHA384
DHE
-
RSA
-
AES256
-
GCM
-
SHA384
exec
$mysql
--
ssl
-
cipher
=
TLSv1
.
2
;
echo
TLS1
.
2
ciphers
:
user
requires
SSLv3
cipher
RC4
-
SHA
;
echo
TLS1
.
2
ciphers
:
user
requires
SSLv3
cipher
AES128
-
SHA
;
exec
$mysql
--
user
ssl_sslv3
--
ssl
-
cipher
=
AES128
-
SHA256
;
exec
$mysql
--
user
ssl_sslv3
--
ssl
-
cipher
=
TLSv1
.
2
;
echo
TLS1
.
2
ciphers
:
user
requires
TLSv1
.
2
cipher
AES128
-
SHA256
;
...
...
@@ -27,13 +28,13 @@ exec $mysql --user ssl_tls12 --ssl-cipher=AES128-SHA256;
exec
$mysql
--
user
ssl_tls12
--
ssl
-
cipher
=
TLSv1
.
2
;
echo
SSLv3
ciphers
:
user
is
ok
with
any
cipher
;
exec
$mysql
--
ssl
-
cipher
=
RC4
-
SHA
;
exec
$mysql
--
ssl
-
cipher
=
AES256
-
SHA
;
exec
$mysql
--
ssl
-
cipher
=
SSLv3
;
echo
SSLv3
ciphers
:
user
requires
SSLv3
cipher
RC4
-
SHA
;
exec
$mysql
--
user
ssl_sslv3
--
ssl
-
cipher
=
RC4
-
SHA
;
echo
SSLv3
ciphers
:
user
requires
SSLv3
cipher
AES128
-
SHA
;
exec
$mysql
--
user
ssl_sslv3
--
ssl
-
cipher
=
AES128
-
SHA
;
exec
$mysql
--
user
ssl_sslv3
--
ssl
-
cipher
=
SSLv3
;
echo
SSLv3
ciphers
:
user
requires
TLSv1
.
2
cipher
AES128
-
SHA256
;
exec
$mysql
--
user
ssl_tls12
--
ssl
-
cipher
=
RC4
-
SHA
;
exec
$mysql
--
user
ssl_tls12
--
ssl
-
cipher
=
AES128
-
SHA
;
exec
$mysql
--
user
ssl_tls12
--
ssl
-
cipher
=
SSLv3
;
drop
user
ssl_sslv3
@
localhost
;
...
...
mysql-test/t/ssl.test
View file @
2395adfb
...
...
@@ -33,8 +33,8 @@ connection default;
disconnect
ssl_con
;
create
user
mysqltest_1
@
localhost
;
grant
usage
on
mysqltest
.*
to
mysqltest_1
@
localhost
require
cipher
"
EDH-RSA-DES-CBC3
-SHA"
;
--
exec
$MYSQL
-
umysqltest_1
--
ssl
-
cipher
=
EDH
-
RSA
-
DES
-
CBC3
-
SHA
-
e
"show status like 'ssl_cipher'"
2
>&
1
grant
usage
on
mysqltest
.*
to
mysqltest_1
@
localhost
require
cipher
"
AES256
-SHA"
;
--
exec
$MYSQL
-
umysqltest_1
--
ssl
-
cipher
=
AES256
-
SHA
-
e
"show status like 'ssl_cipher'"
2
>&
1
drop
user
mysqltest_1
@
localhost
;
# Wait till all disconnects are completed
...
...
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