From 73aac4bff499db196c5e7550e89e0c158dab0761 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 22 Nov 2018 23:14:45 -0700 Subject: [PATCH] update builder function --- lib/asn1.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asn1.js b/lib/asn1.js index 83a28b3..c217aef 100644 --- a/lib/asn1.js +++ b/lib/asn1.js @@ -182,9 +182,9 @@ ASN1.tpl = function (asn1) { if (0x02 !== asn1.type && 0x03 !== asn1.type) { str += ", "; } - str += "opts.tpl" + i; + str += "Enc.bufToHex(opts.tpl" + i + ")"; } else { - str += ", " + Enc.bufToHex(asn1.value); + str += ", '" + Enc.bufToHex(asn1.value) + "'"; } } str += ")";