Skip to content

Commit

Permalink
reduced IO::Socket::SSL version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 7, 2011
1 parent bd49360 commit 041c5f3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Client.pm
Expand Up @@ -13,7 +13,7 @@ use constant IPV6 => $ENV{MOJO_NO_IPV6}
# TLS support requires IO::Socket::SSL
use constant TLS => $ENV{MOJO_NO_TLS}
? 0
: eval 'use IO::Socket::SSL 1.43 "inet4"; 1';
: eval 'use IO::Socket::SSL 1.37 "inet4"; 1';
use constant TLS_READ => TLS ? IO::Socket::SSL::SSL_WANT_READ() : 0;
use constant TLS_WRITE => TLS ? IO::Socket::SSL::SSL_WANT_WRITE() : 0;

Expand Down Expand Up @@ -97,7 +97,7 @@ sub _connect {

# No TLS support
return $self->emit(
error => 'IO::Socket::SSL 1.43 required for TLS support.')
error => 'IO::Socket::SSL 1.37 required for TLS support.')
unless TLS;

# Upgrade
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Server.pm
Expand Up @@ -16,7 +16,7 @@ use constant IPV6 => $ENV{MOJO_NO_IPV6}
# TLS support requires IO::Socket::SSL
use constant TLS => $ENV{MOJO_NO_TLS}
? 0
: eval 'use IO::Socket::SSL 1.43 "inet4"; 1';
: eval 'use IO::Socket::SSL 1.37 "inet4"; 1';
use constant TLS_READ => TLS ? IO::Socket::SSL::SSL_WANT_READ() : 0;
use constant TLS_WRITE => TLS ? IO::Socket::SSL::SSL_WANT_WRITE() : 0;

Expand Down Expand Up @@ -128,7 +128,7 @@ sub listen {

# TLS
return unless $args->{tls};
croak "IO::Socket::SSL 1.43 required for TLS support" unless TLS;
croak "IO::Socket::SSL 1.37 required for TLS support" unless TLS;

# Options
my %options = (
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/ioloop_tls.t
Expand Up @@ -32,7 +32,7 @@ use Mojo::IOLoop::Server;
use Mojo::IOLoop::Stream;
plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
plan skip_all => 'IO::Socket::SSL 1.37 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan tests => 16;

Expand Down
2 changes: 1 addition & 1 deletion t/mojo/user_agent_tls.t
Expand Up @@ -11,7 +11,7 @@ use Test::More;
use Mojo::IOLoop::Server;
plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
plan skip_all => 'IO::Socket::SSL 1.37 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan tests => 14;

Expand Down
2 changes: 1 addition & 1 deletion t/mojo/websocket_proxy_tls.t
Expand Up @@ -13,7 +13,7 @@ use Mojo::IOLoop::Server;
use Mojo::IOLoop::Stream;
plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
plan skip_all => 'IO::Socket::SSL 1.37 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan tests => 15;

Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/tls_lite_app.t
Expand Up @@ -12,7 +12,7 @@ use Mojo::IOLoop::Server;
use Mojo::IOLoop::Stream;
plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
plan skip_all => 'IO::Socket::SSL 1.37 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan tests => 18;

Expand Down

0 comments on commit 041c5f3

Please sign in to comment.