Fix cross reference table generator.
[openssl.git] / crypto / objects / objxref.pl
index 731d3ae22c2745928648f0602ba2732c292a9b7e..6c4c832ab205a02d68aba4e45a195ad38d39df09 100644 (file)
@@ -90,7 +90,10 @@ EOF
 
 foreach (@srt2)
        {
-       my $x = $xref_tbl{$_}[2];
+       my ($p1, $p2, $x) = @{$xref_tbl{$_}};
+       # If digest or signature algorithm is "undef" then the algorithm
+       # needs special handling and is excluded from the cross reference table.
+       next if $p1 eq "undef" || $p2 eq "undef";
        print "\t\&sigoid_srt\[$x\],\n";
        }