Skip to content

Commit

Permalink
use AES256-SHA for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 20, 2016
1 parent 7c471a4 commit 8aa8fed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -3,6 +3,7 @@
- Improved HTML Living Standard compliance of Mojo::DOM::HTML.
- Improved Mojo::Server::Prefork to log when the manager process has been
stopped.
- Fixed a few tests to keep up with breaking changes in IO::Socket::SSL.

6.58 2016-04-09
- Removed deprecated build_frame and parse_frame methods from
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/ioloop_tls.t
Expand Up @@ -306,7 +306,7 @@ $id = $loop->server(
tls => 1,
tls_ca => 't/mojo/certs/ca.crt',
tls_cert => 't/mojo/certs/server.crt',
tls_ciphers => 'RC4-SHA:ALL',
tls_ciphers => 'AES256-SHA:ALL',
tls_key => 't/mojo/certs/server.key',
tls_verify => 0x00,
sub {
Expand All @@ -333,7 +333,7 @@ $loop->start;
is $server, 'accepted', 'right result';
is $client, 'connected', 'right result';
ok !$client_err, 'no error';
is $cipher, 'RC4-SHA', 'RC4-SHA has been negotiatied';
is $cipher, 'AES256-SHA', 'AES256-SHA has been negotiatied';

# Ignore missing client certificate
($server, $client, $client_err) = ();
Expand Down
6 changes: 3 additions & 3 deletions t/mojo/user_agent_tls.t
Expand Up @@ -84,7 +84,7 @@ $listen
. '?cert=t/mojo/certs/server.crt'
. '&key=t/mojo/certs/server.key'
. '&ca=t/mojo/certs/ca.crt'
. '&ciphers=RC4-SHA:ALL'
. '&ciphers=AES256-SHA:ALL'
. '&verify=0x00'
. '&version=SSLv3';
$daemon->listen([$listen])->start;
Expand All @@ -97,8 +97,8 @@ IO::Socket::SSL::set_defaults(SSL_version => 'SSLv3');
$tx = $ua->get("https://127.0.0.1:$port");
ok $tx->success, 'successful';
ok !$tx->error, 'no error';
is $ua->ioloop->stream($tx->connection)->handle->get_cipher, 'RC4-SHA',
'RC4-SHA has been negotiatied';
is $ua->ioloop->stream($tx->connection)->handle->get_cipher, 'AES256-SHA',
'AES256-SHA has been negotiatied';
is $ua->ioloop->stream($tx->connection)->handle->get_sslversion, 'SSLv3',
'SSLv3 has been negotiatied';

Expand Down

0 comments on commit 8aa8fed

Please sign in to comment.