[Pkg-javascript-commits] [node-asn1.js] 125/202: 3280: test for directoryName

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:19:00 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 626abc7a50a79572581b95a67e2ab09150936957
Author: Fedor Indutny <fedor at indutny.com>
Date:   Mon Oct 12 12:36:58 2015 -0400

    3280: test for directoryName
---
 rfc/3280/test/basic-test.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rfc/3280/test/basic-test.js b/rfc/3280/test/basic-test.js
index f17e0fe..37843a2 100644
--- a/rfc/3280/test/basic-test.js
+++ b/rfc/3280/test/basic-test.js
@@ -119,4 +119,11 @@ describe('asn1.js RFC3280', function() {
 
     assert(info[0].accessMethod);
   });
+
+  it('should decode directoryName in GeneralName', function() {
+    var data = new Buffer('a411300f310d300b06022a03160568656c6c6f', 'hex');
+
+    var name = rfc3280.GeneralName.decode(data, 'der');
+    assert.equal(name.type, 'directoryName');
+  });
 });

-- 
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