[Pkg-javascript-commits] [node-asn1.js] 124/202: rfc-3280: directoryName is explicit

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 b4492f1b1cf043d0f34ce970df29c6b6404ae88d
Author: Fedor Indutny <fedor at indutny.com>
Date:   Sat Oct 10 23:08:20 2015 -0400

    rfc-3280: directoryName is explicit
---
 rfc/3280/index.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rfc/3280/index.js b/rfc/3280/index.js
index c4f3c6c..a0ef29c 100644
--- a/rfc/3280/index.js
+++ b/rfc/3280/index.js
@@ -161,7 +161,10 @@ var GeneralName = asn1.define('GeneralName', function() {
     otherName: this.implicit(0).use(AnotherName),
     rfc822Name: this.implicit(1).ia5str(),
     dNSName: this.implicit(2).ia5str(),
-    directoryName: this.implicit(4).use(Name),
+
+    // OpenSSL says:
+    // X509_NAME is a CHOICE type so use EXPLICIT
+    directoryName: this.explicit(4).use(Name),
 
     // TODO(indutny): requires DirectoryString, ORAddress
     // ediPartyName: this.implicit(5).use(EDIPartyName),

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