-
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* x509-2.1.5.js (c) 2012-2023 Kenji Urushima | kjur.github.io/jsrsasign/license | ||
/* x509-2.1.6.js (c) 2012-2023 Kenji Urushima | kjur.github.io/jsrsasign/license | ||
*/ | ||
/* | ||
* x509.js - X509 class to read subject public key from certificate. | ||
|
@@ -16,7 +16,7 @@ | |
* @fileOverview | ||
* @name x509-1.1.js | ||
* @author Kenji Urushima [email protected] | ||
* @version jsrsasign 10.8.5 x509 2.1.5 (2023-Apr-26) | ||
* @version jsrsasign 10.8.6 x509 2.1.6 (2023-Apr-26) | ||
* @since jsrsasign 1.x.x | ||
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a> | ||
*/ | ||
|
@@ -2599,12 +2599,13 @@ function X509(params) { | |
if (critical) result.critical = true; | ||
try { | ||
var pASN1 = _ASN1HEX_parse(hExtV); | ||
var aValue = []; | ||
for (var i = 0; i < pASN1.seq.length; i++) { | ||
var aASN1Attribute = pASN1.seq[i]; | ||
var attrType = aryval(aASN1Attribute, "seq.0.oid"); | ||
var attrValue = aryval(aASN1Attribute, "seq.1.set"); | ||
if (attrType == undefined || attrValue == undefined) throw "error"; | ||
return { attr: attrType, array: attrValue }; | ||
aValue.push({ attr: attrType, array: attrValue }); | ||
} | ||
result.array = aValue; | ||
return result; | ||
|