From: Richard Levitte Date: Tue, 3 Dec 2019 23:10:04 +0000 (+0100) Subject: Disable devcryptoeng on newer OpenBSD versions X-Git-Tag: OpenSSL_1_1_1e~102 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b5827df6d6a4db4e190114a31540b413376b1e5;p=oweals%2Fopenssl.git 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 (Merged from https://github.com/openssl/openssl/pull/10565) --- 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