File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 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);
2222my $api = Crypt::OpenSSL::ConfiguredAPI::get_configured_api();
2323print " API version read $api \n " ;
2424
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+
2534my $compat = $api ne 0 ? $api : $version ;
2635print " OPENSSL_COMPAT_API set to: $compat \n " ;
2736
@@ -90,7 +99,7 @@ my %WriteMakefileArgs = (
9099 " File::Which" => 0,
91100 " Test::More" => " 0.88"
92101 },
93- " VERSION" => " 0.13 " ,
102+ " VERSION" => " 0.14 " ,
94103 " test" => {
95104 " TESTS" => " t/*.t"
96105 }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use warnings;
77
88require Exporter;
99
10- our $VERSION = " 0.13 " ;
10+ our $VERSION = " 0.14 " ;
1111
1212our @ISA = qw( Exporter) ;
1313
Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ my $version = ($major * 10000) + ($minor * 100);
1212my $api = Crypt::OpenSSL::ConfiguredAPI::get_configured_api();
1313print " API version read $api \n " ;
1414
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+
1524my $compat = $api ne 0 ? $api : $version ;
1625print " OPENSSL_COMPAT_API set to: $compat \n " ;
1726
You can’t perform that action at this time.
0 commit comments