summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-11 13:45:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-11 13:45:46 +0000
commit3e48355ebcbba5d3372127ea2b38076884ca0cb6 (patch)
tree482932fa7814cdd15c13a919e879e8f182d2a16f /lib
parent5fd39673082b546dccb63253fbc6ef64c8fde7ea (diff)
Fix OID encoding for single components. OpenSSL PR #2556 via OpenSSL trunk.
(be sure to make cleandir and make includes before building)
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/objects/obj_dat.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/objects/obj_dat.pl b/lib/libssl/src/crypto/objects/obj_dat.pl
index c67f71c3277..86bcefb97af 100644
--- a/lib/libssl/src/crypto/objects/obj_dat.pl
+++ b/lib/libssl/src/crypto/objects/obj_dat.pl
@@ -115,7 +115,7 @@ for ($i=0; $i<$n; $i++)
$out.="\"$sn\"";
$out.=","."\"$ln\"";
$out.=",NID_$nid{$i},";
- if (defined($obj{$nid{$i}}))
+ if (defined($obj{$nid{$i}}) && $objd{$obj{$nid{$i}}} =~ /,/)
{
$v=$objd{$obj{$nid{$i}}};
$v =~ s/L//g;