Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support any attribute OID in DName #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions asn1x509-1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -2000,9 +2000,11 @@ KJUR.asn1.x509.OID = new function(params) {
this.atype2obj = function(atype) {
if (typeof this.objCache[atype] != "undefined")
return this.objCache[atype];
var oid;
if (typeof this.atype2oidList[atype] == "undefined")
throw "AttributeType name undefined: " + atype;
var oid = this.atype2oidList[atype];
oid = atype;//throw "AttributeType name undefined: " + atype;
else
oid = this.atype2oidList[atype];
var obj = new KJUR.asn1.DERObjectIdentifier({'oid': oid});
this.objCache[atype] = obj;
return obj;
Expand Down