summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-12-04 00:14:02 +0100
committerRichard Levitte <levitte@openssl.org>2019-12-10 14:20:34 +0100
commit76d0a74b8ef2902f7a534a12a043346a3d593886 (patch)
treec58adba902ca51e7e304bae72a5868fb7593bed6 /Configure
parentea7a952c8aab33d0bb0a2bbd210305d722a5702b (diff)
downloadopenssl-new-76d0a74b8ef2902f7a534a12a043346a3d593886.tar.gz
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/10566)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/Configure b/Configure
index bad09ed8a3..55b50f7c7d 100755
--- a/Configure
+++ b/Configure
@@ -1590,6 +1590,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_feature_defines}}, "OPENSSL_NO_AFALGENG" if ($disabled{afalgeng});
unless ($disabled{ktls}) {