File tree 3 files changed +20
-2
lines changed
3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,15 @@ my $version = ($major * 10000) + ($minor * 100);
22
22
my $api = Crypt::OpenSSL::ConfiguredAPI::get_configured_api();
23
23
print " API version read $api \n " ;
24
24
25
+ if (!$api ) {
26
+ my $prefix = find_openssl_prefix();
27
+ my $exec = find_openssl_exec($prefix );
28
+ if (` $exec version` =~ m / LibreSSL/ ){
29
+ $api = 10100;
30
+ print " LibreSSL detected setting api to 10100\n " ;
31
+ }
32
+ }
33
+
25
34
my $compat = $api ne 0 ? $api : $version ;
26
35
print " OPENSSL_COMPAT_API set to: $compat \n " ;
27
36
@@ -90,7 +99,7 @@ my %WriteMakefileArgs = (
90
99
" File::Which" => 0,
91
100
" Test::More" => " 0.88"
92
101
},
93
- " VERSION" => " 0.13 " ,
102
+ " VERSION" => " 0.14 " ,
94
103
" test" => {
95
104
" TESTS" => " t/*.t"
96
105
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use warnings;
7
7
8
8
require Exporter;
9
9
10
- our $VERSION = " 0.13 " ;
10
+ our $VERSION = " 0.14 " ;
11
11
12
12
our @ISA = qw( Exporter) ;
13
13
Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ my $version = ($major * 10000) + ($minor * 100);
12
12
my $api = Crypt::OpenSSL::ConfiguredAPI::get_configured_api();
13
13
print " API version read $api \n " ;
14
14
15
+ if (!$api ) {
16
+ my $prefix = find_openssl_prefix();
17
+ my $exec = find_openssl_exec($prefix );
18
+ if (` $exec version` =~ m / LibreSSL/ ){
19
+ $api = 10100;
20
+ print " LibreSSL detected setting api to 10100\n " ;
21
+ }
22
+ }
23
+
15
24
my $compat = $api ne 0 ? $api : $version ;
16
25
print " OPENSSL_COMPAT_API set to: $compat \n " ;
17
26
You can’t perform that action at this time.
0 commit comments