1# The include statement below is a temp one for tests that are yet to
2#be ported to run with InnoDB,
3#but needs to be kept for tests that would need MyISAM in future.
4--source include/force_myisam_default.inc
5
6#Want to skip this test from daily Valgrind execution
7--source include/no_valgrind_without_big.inc
8# Turn on ssl between the client and server
9# and run a number of tests
10
11-- source include/have_ssl_communication.inc
12
13# Save the initial number of concurrent sessions
14--source include/count_sessions.inc
15
16connect (ssl_con,localhost,root,,,,,SSL);
17
18# Check ssl turned on
19--replace_regex $ALLOWED_CIPHERS_REGEX
20SHOW STATUS LIKE 'Ssl_cipher';
21
22# Check ssl expiration
23SHOW STATUS LIKE 'Ssl_server_not_before';
24SHOW STATUS LIKE 'Ssl_server_not_after';
25
26# Source select test case
27-- source include/common-tests.inc
28
29# Check ssl turned on
30--replace_regex $ALLOWED_CIPHERS_REGEX
31SHOW STATUS LIKE 'Ssl_cipher';
32
33connection default;
34disconnect ssl_con;
35
36--echo #
37--echo # Bug#54790: Use of non-blocking mode for sockets limits performance
38--echo #
39
40--echo # Open ssl_con and set a timeout.
41connect (ssl_con,localhost,root,,,,,SSL);
42
43LET $ID= `SELECT connection_id()`;
44SET @@SESSION.wait_timeout = 2;
45
46--echo # Wait for ssl_con to be disconnected.
47connection default;
48let $wait_condition=
49  SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST
50  WHERE ID = $ID;
51--source include/wait_condition.inc
52
53--echo # Check that ssl_con has been disconnected.
54connection ssl_con;
55--echo # CR_SERVER_LOST, CR_SERVER_GONE_ERROR
56--error 2006,2013
57SELECT 1;
58
59connection default;
60disconnect ssl_con;
61
62# Wait till all disconnects are completed
63--source include/wait_until_count_sessions.inc
64
65##  This test file is for testing encrypted communication only, not other
66##  encryption routines that the SSL library happens to provide!
67