1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
package TestSSL::05ext;
use strict;
use warnings FATAL => qw(all);
use Apache::Test qw(-withtestmore);
use Apache2::Const -compile => qw(OK);
sub handler {
my $r = shift;
plan $r, tests => 4;
{
use_ok('Apache::SSLLookup');
}
{
can_ok('Apache::SSLLookup', 'ext_lookup');
}
{
$r = Apache::SSLLookup->new($r);
ok(!$r->ext_lookup('060406142524Z'),
'nothing to find on the server when not using ssl');
ok(!$r->ext_lookup('060406142524Z'),
'nothing to find on the client when not using ssl');
}
return Apache2::Const::OK;
}
1;
|