Configure: Add easy to use disabled deprecated functionality indicators
authorRichard Levitte <levitte@openssl.org>
Thu, 6 Feb 2020 10:26:22 +0000 (11:26 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 Feb 2020 13:54:36 +0000 (14:54 +0100)
commitb05d63273277e0a17ade780b6bef2c48cfd3e522
treeaf6b2f5394e0350d491dc238a8a36e0d918dfc60
parent09066cf2a1f9f3d13ea2898304250f5916d6de70
Configure: Add easy to use disabled deprecated functionality indicators

In C, we have macros like OPENSSL_NO_DEPRECATED_3_0 to check if some
section of code should be disabled to simulate a removal of things
deprecated in the version.

In perl, we had to check $disabled{deprecated} and compare
$config{api} with the proper version code, which is doable but tedious
and error prone.

This change adds $disabled{'deprecated-x.y'} (x.y being a version
number) which directly corresponds to OPENSSL_NO_DEPRECATED_x_y, for
use in build.info conditions, test recipes and other perl stuff.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11027)
Configure