/usr/lib/x86_64-linux-gnu/perl5/5.24/Crypt/SSLeay/MainContext.pm is in libcrypt-ssleay-perl 0.73.04-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | package Crypt::SSLeay::MainContext;
# maintains a single instance of the Crypt::SSLeay::CTX class
use strict;
use Carp ();
use Exporter qw ( import );
use vars qw( @EXPORT @EXPORT_OK );
@EXPORT = ();
@EXPORT_OK = qw( main_ctx );
require Crypt::SSLeay::CTX;
# The following list is taken, with appreciation, from
# Ristic, I (2013) "OpenSSL Cookbook", Feisty Duck Ltd
# http://amzn.to/1z8rDdj
#
use constant CRYPT_SSLEAY_DEFAULT_CIPHER_LIST => join(
q{:}, qw(
kEECDH+ECDSA
kEECDH
kEDH
HIGH
+SHA
+RC4
RC4
!aNULL
!eNULL
!LOW
!3DES
!MD5
!EXP
!DSS
!PSK
!SRP
!kECDH
!CAMELLIA
)
);
sub main_ctx {
my $ctx = Crypt::SSLeay::CTX->new(
$ENV{CRYPT_SSLEAY_ALLOW_SSLv3} ? 1 : 0
);
if ($ENV{CRYPT_SSLEAY_CIPHER}) {
$ctx->set_cipher_list($ENV{CRYPT_SSLEAY_CIPHER});
}
else {
$ctx->set_cipher_list(
CRYPT_SSLEAY_DEFAULT_CIPHER_LIST
);
}
$ctx;
}
1;
|