File Coverage

blib/lib/Crypt/SSLeay.pm
Criterion Covered Total %
statement 16 18 88.8
branch n/a
condition n/a
subroutine 6 8 75.0
pod n/a
total 22 26 84.6


line stmt bran cond sub pod time code
1             package Crypt::SSLeay;
2              
3 3     3   48715 use strict;
  3         5  
  3         114  
4 3     3   16 use vars '$VERSION';
  3         4  
  3         428  
5             $VERSION = '0.72';
6             $VERSION = eval $VERSION;
7              
8             eval {
9             require XSLoader;
10             XSLoader::load('Crypt::SSLeay', $VERSION);
11             1;
12             }
13             or do {
14             require DynaLoader;
15 3     3   15 use vars '@ISA'; # not really locally scoped, it just looks that way
  3         9  
  3         202  
16             @ISA = qw(DynaLoader);
17             bootstrap Crypt::SSLeay $VERSION;
18             };
19              
20 3     3   22 use vars qw(%CIPHERS);
  3         4  
  3         230  
21             %CIPHERS = (
22             'NULL-MD5' => "No encryption with a MD5 MAC",
23             'RC4-MD5' => "128 bit RC4 encryption with a MD5 MAC",
24             'EXP-RC4-MD5' => "40 bit RC4 encryption with a MD5 MAC",
25             'RC2-CBC-MD5' => "128 bit RC2 encryption with a MD5 MAC",
26             'EXP-RC2-CBC-MD5' => "40 bit RC2 encryption with a MD5 MAC",
27             'IDEA-CBC-MD5' => "128 bit IDEA encryption with a MD5 MAC",
28             'DES-CBC-MD5' => "56 bit DES encryption with a MD5 MAC",
29             'DES-CBC-SHA' => "56 bit DES encryption with a SHA MAC",
30             'DES-CBC3-MD5' => "192 bit EDE3 DES encryption with a MD5 MAC",
31             'DES-CBC3-SHA' => "192 bit EDE3 DES encryption with a SHA MAC",
32             'DES-CFB-M1' => "56 bit CFB64 DES encryption with a one byte MD5 MAC",
33             );
34              
35 3     3   2838 use Crypt::SSLeay::X509;
  3         7  
  3         272  
36              
37             # A xsupp bug made this necessary
38 2     2   600 sub Crypt::SSLeay::CTX::DESTROY { shift->free; }
39 0     0     sub Crypt::SSLeay::Conn::DESTROY { shift->free; }
40 0     0     sub Crypt::SSLeay::X509::DESTROY { shift->free; }
41              
42             1;
43              
44             __END__