show object ids
This commit is contained in:
parent
70ba729899
commit
95ea9ffa34
1 changed files with 10 additions and 6 deletions
|
@ -175,6 +175,7 @@ ASN1.tpl = function (asn1) {
|
||||||
}
|
}
|
||||||
if (!asn1.children) {
|
if (!asn1.children) {
|
||||||
if (0x05 !== asn1.type) {
|
if (0x05 !== asn1.type) {
|
||||||
|
if (0x06 !== asn1.type) {
|
||||||
val = Buffer.from(asn1.value || '');
|
val = Buffer.from(asn1.value || '');
|
||||||
vars.push("// 0x" + Enc.numToHex(val.byteLength) + " (" + val.byteLength + " bytes)\nvar tpl" + i + " = '"
|
vars.push("// 0x" + Enc.numToHex(val.byteLength) + " (" + val.byteLength + " bytes)\nvar tpl" + i + " = '"
|
||||||
+ Enc.bufToHex(val) + "';");
|
+ Enc.bufToHex(val) + "';");
|
||||||
|
@ -182,6 +183,9 @@ ASN1.tpl = function (asn1) {
|
||||||
str += ", ";
|
str += ", ";
|
||||||
}
|
}
|
||||||
str += "tpl" + i;
|
str += "tpl" + i;
|
||||||
|
} else {
|
||||||
|
str += ", " + Enc.bufToHex(asn1.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
str += ")";
|
str += ")";
|
||||||
return ;
|
return ;
|
||||||
|
|
Loading…
Reference in a new issue