aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/objects/objects.pl
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/objects/objects.pl')
-rw-r--r--openssl/crypto/objects/objects.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl/crypto/objects/objects.pl b/openssl/crypto/objects/objects.pl
index 76c06cc8f..15c00bbd5 100644
--- a/openssl/crypto/objects/objects.pl
+++ b/openssl/crypto/objects/objects.pl
@@ -14,6 +14,8 @@ while(<NUMIN>)
$Cname =~ s/^X//;
if (defined($nidn{$mynum}))
{ die "$ARGV[1]:$o:There's already an object with NID ",$mynum," on line ",$order{$mynum},"\n"; }
+ if (defined($nid{$Cname}))
+ { die "$ARGV[1]:$o:There's already an object with name ",$Cname," on line ",$order{$nid{$Cname}},"\n"; }
$nid{$Cname} = $mynum;
$nidn{$mynum} = $Cname;
$order{$mynum} = $o;
@@ -102,6 +104,7 @@ while (<IN>)
$max_nid++;
$nid{$Cname} = $max_nid;
$nidn{$max_nid} = $Cname;
+print STDERR "Added OID $Cname\n";
}
$Cname="";
}