Skip to content

Commit

Permalink
Don't use SSLv3 for tests
Browse files Browse the repository at this point in the history
Should fix #14.
  • Loading branch information
retupmoca committed Nov 16, 2015
1 parent 3974a28 commit 4a5a262
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions t/01-basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use Test;

plan 9;

my $ssl = OpenSSL.new(:version(3), :client);
my $ssl = OpenSSL.new(:version(1), :client);

isa-ok $ssl, OpenSSL, 'new 1/3';
is $ssl.ctx.method.version, 768, 'new 2/3';
is $ssl.ctx.method.version, 769, 'new 2/3';

$ssl = OpenSSL.new(:client);
is $ssl.ctx.method.version, 769, 'new 3/3';
is $ssl.ctx.method.version, 771, 'new 3/3';

# wrong fd here
ok $ssl.set-fd(111), 'set-fd';
Expand Down
2 changes: 1 addition & 1 deletion t/02-socket.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sub check($result) {
}

sub fetch($host, $url) {
my $ssl = OpenSSL.new(:version(3), :client);
my $ssl = OpenSSL.new(:client);
my $s = IO::Socket::INET.new(:$host, :port(443));
is $ssl.set-socket($s), 0, 'set-socket success';
$ssl.set-connect-state;
Expand Down

0 comments on commit 4a5a262

Please sign in to comment.