line |
true |
false |
branch |
54
|
13 |
0 |
if (not defined &LOAD_SSL_ENGINES) |
63
|
0 |
13 |
if ($@) { } |
177
|
0 |
29 |
unless (defined $socket) |
182
|
3 |
26 |
if (defined $version and ref $version and ref $version eq 'CODE') { } |
|
0 |
26 |
elsif (defined $options and ref $options and ref $options eq 'CODE') { } |
|
0 |
52 |
elsif (defined $custom_ctx and ref $custom_ctx and ref $custom_ctx eq 'CODE') { } |
195
|
0 |
29 |
unless (defined $socket->blocking(0)) |
201
|
0 |
29 |
unless tie *$newsock, 'POE::Component::SSLify::ClientHandle', $socket, $version, $options, $custom_ctx, $callback |
204
|
3 |
26 |
if (defined $callback) |
241
|
0 |
29 |
unless (defined $socket) |
246
|
0 |
0 |
unless (defined $ctx or defined $custom_ctx) |
251
|
3 |
0 |
if (defined $custom_ctx and ref $custom_ctx and ref $custom_ctx eq 'CODE') |
258
|
0 |
29 |
unless (defined $socket->blocking(0)) |
264
|
0 |
29 |
unless tie *$newsock, 'POE::Component::SSLify::ServerHandle', $socket, $custom_ctx || $ctx, $callback |
267
|
3 |
26 |
if (defined $callback) |
334
|
0 |
29 |
unless (defined $key and defined $cert) |
339
|
29 |
0 |
unless (defined $options) |
344
|
18 |
11 |
if (defined $ctx) |
358
|
52 |
6 |
if (defined $version and not ref $version) { } |
359
|
0 |
52 |
if ($version eq 'sslv2') { } |
|
52 |
0 |
elsif ($version eq 'sslv3') { } |
|
0 |
0 |
elsif ($version eq 'tlsv1') { } |
|
0 |
0 |
elsif ($version eq 'sslv23') { } |
|
0 |
0 |
elsif ($version eq 'default') { } |
375
|
0 |
58 |
unless (defined $context) |
381
|
29 |
29 |
if (defined $options) |
383
|
29 |
0 |
unless $IGNORE_SSL_ERRORS |
387
|
29 |
29 |
if (defined $key) |
390
|
29 |
0 |
unless $IGNORE_SSL_ERRORS |
394
|
29 |
29 |
if (defined $cert) |
396
|
29 |
0 |
unless $IGNORE_SSL_ERRORS |
415
|
0 |
0 |
if (not defined $sock) { } |