diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-11-01 00:10:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-11-13 13:34:42 +0000 |
commit | 55f7fb8848b6e4bec291724a479e1580d6f407d6 (patch) | |
tree | 82c7604a0b50652996629f3abcc15126b85f1fc8 /crypto/objects/objxref.pl | |
parent | 5211e094dec9486a540ac480f345df1a8d2b2862 (diff) |
Fix cross reference table generator.
If the hash or public key algorithm is "undef" the signature type
will receive special handling and shouldn't be included in the
cross reference table.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/objects/objxref.pl')
-rw-r--r-- | crypto/objects/objxref.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/objects/objxref.pl b/crypto/objects/objxref.pl index 94b9bc133f..833f4ab882 100644 --- a/crypto/objects/objxref.pl +++ b/crypto/objects/objxref.pl @@ -91,7 +91,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"; } |