summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-12-04 00:10:04 +0100
committerRichard Levitte <levitte@openssl.org>2019-12-18 19:38:39 +0100
commit2b5827df6d6a4db4e190114a31540b413376b1e5 (patch)
tree1920b5789f79d088874bb5e7e7e4c23e66cd0c23 /Configure
parent7540f7bdc271037267e08006ec32bb47a1ea427a (diff)
Disable devcryptoeng on newer OpenBSD versions
It's reported that /dev/crypto support has been dropped in OpenBSD 5.7. Fixes #10552 Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10565)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/Configure b/Configure
index a6aae00fd4..4993dc212d 100755
--- a/Configure
+++ b/Configure
@@ -1587,6 +1587,21 @@ unless ($disabled{afalgeng}) {
}
}
+unless ($disabled{devcryptoeng}) {
+ if ($target =~ m/^BSD/) {
+ my $maxver = 5*100 + 7;
+ my $sysstr = `uname -s`;
+ my $verstr = `uname -r`;
+ $sysstr =~ s|\R$||;
+ $verstr =~ s|\R$||;
+ my ($ma, $mi, @rest) = split m|\.|, $verstr;
+ my $ver = $ma*100 + $mi;
+ if ($sysstr eq 'OpenBSD' && $ver >= $maxver) {
+ disable('too-new-kernel', 'devcryptoeng');
+ }
+ }
+}
+
push @{$config{openssl_other_defines}}, "OPENSSL_NO_AFALGENG" if ($disabled{afalgeng});
# Get the extra flags used when building shared libraries and modules. We