diff --git a/asn1.js b/asn1.js index 2c56b0f..f87a537 100644 --- a/asn1.js +++ b/asn1.js @@ -361,7 +361,7 @@ ASN1.prototype.posContent = function () { ASN1.prototype.posEnd = function () { return this.stream.pos + this.header + Math.abs(this.length); }; -ASN1.prototype.toHexString = function (root) { +ASN1.prototype.toHexString = function () { return this.stream.hexDump(this.posStart(), this.posEnd(), true); }; ASN1.decodeLength = function (stream) {