[Pkg-javascript-commits] [node-asn1.js] 11/202: encoder: encode bitstr as it is for now

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:18:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-asn1.js.

commit 126b882c65bfd28c1cd1259d0ab58ffeb6495ac1
Author: Fedor Indutny <fedor.indutny at gmail.com>
Date:   Sun Dec 1 23:11:31 2013 +0400

    encoder: encode bitstr as it is for now
---
 lib/asn1/encoders/der.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/asn1/encoders/der.js b/lib/asn1/encoders/der.js
index 5e0063f..bb5082e 100644
--- a/lib/asn1/encoders/der.js
+++ b/lib/asn1/encoders/der.js
@@ -65,7 +65,7 @@ DERNode.prototype._encodeStr = function encodeStr(str, tag) {
 
   // TODO(indunty): support first octet
   else if (tag === 'bitstr')
-    return new base.EncoderBuffer([ 0, str ]);
+    return new base.EncoderBuffer(str);
 };
 
 DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-asn1.js.git



More information about the Pkg-javascript-commits mailing list