update builder function

This commit is contained in:
AJ ONeal 2018-11-22 23:14:45 -07:00
parent b6769f3734
commit 73aac4bff4

View file

@ -182,9 +182,9 @@ ASN1.tpl = function (asn1) {
if (0x02 !== asn1.type && 0x03 !== asn1.type) { if (0x02 !== asn1.type && 0x03 !== asn1.type) {
str += ", "; str += ", ";
} }
str += "opts.tpl" + i; str += "Enc.bufToHex(opts.tpl" + i + ")";
} else { } else {
str += ", " + Enc.bufToHex(asn1.value); str += ", '" + Enc.bufToHex(asn1.value) + "'";
} }
} }
str += ")"; str += ")";