From: Dr. Stephen Henson Date: Sat, 1 Nov 2014 00:10:56 +0000 (+0000) Subject: Fix cross reference table generator. X-Git-Tag: OpenSSL_1_0_2-pre-reformat~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba7aaa5622b16ef35a445fc03338bb8af7b80d6e;p=thirdparty%2Fopenssl.git 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 (cherry picked from commit 55f7fb8848b6e4bec291724a479e1580d6f407d6) --- diff --git a/crypto/objects/obj_xref.h b/crypto/objects/obj_xref.h index cfd628a7882..433c96bb43b 100644 --- a/crypto/objects/obj_xref.h +++ b/crypto/objects/obj_xref.h @@ -53,9 +53,6 @@ static const nid_triple sigoid_srt[] = static const nid_triple * const sigoid_srt_xref[] = { - &sigoid_srt[29], - &sigoid_srt[17], - &sigoid_srt[18], &sigoid_srt[0], &sigoid_srt[1], &sigoid_srt[7], diff --git a/crypto/objects/objxref.pl b/crypto/objects/objxref.pl index 94b9bc133f6..833f4ab8829 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"; }