summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-02-08 12:31:05 +0100
committerRichard Levitte <levitte@openssl.org>2018-02-08 12:46:36 +0100
commit65de3f1657d8a3bdb7c48063931a3c619817c921 (patch)
treef1e72bcf10a8e6318076efd3b1aa5e9fafbbb9f1 /util
parentd8ba72c9f7e397942aabe1a0a3ad7019e774884a (diff)
util/mkdef.pl: use better array in search of 'DEPRECATEDIN_'
%disabled_algorithms isn't necessarily initialised with the "algos" 'DEPRECATEDIN_1_1_0' etc. However, we know that @known_algorithms has them all, so use that to find them instead. Fixes #5157 (where this was reported) Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5282) (cherry picked from commit b53fdad0e4350ba49812c50305686ee5a6239111)
Diffstat (limited to 'util')
-rwxr-xr-xutil/mkdef.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl
index bbe961c254..3775b70e93 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -190,7 +190,7 @@ foreach (@ARGV, split(/ /, $config{options}))
$do_checkexist=1 if $_ eq "exist";
if (/^--api=(\d+)\.(\d+)\.(\d+)$/) {
my $apiv = sprintf "%x%02x%02x", $1, $2, $3;
- foreach (keys %disabled_algorithms) {
+ foreach (@known_algorithms) {
if (/^DEPRECATEDIN_(\d+)_(\d+)_(\d+)$/) {
my $depv = sprintf "%x%02x%02x", $1, $2, $3;
$disabled_algorithms{$_} = 1 if $apiv ge $depv;