micro509 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/internal/verify/spki-distrust.js +23 -0
- package/dist/internal/verify/spki-distrust.js.map +1 -0
- package/dist/internal/verify/verify-path.js +77 -60
- package/dist/internal/verify/verify-path.js.map +1 -1
- package/dist/keys/keys.d.ts +11 -8
- package/dist/keys/keys.js.map +1 -1
- package/dist/revocation/crl.js +2 -7
- package/dist/revocation/crl.js.map +1 -1
- package/dist/verify/verify.d.ts +32 -1
- package/dist/verify/verify.js +100 -58
- package/dist/verify/verify.js.map +1 -1
- package/dist/x509/fingerprint.d.ts +11 -0
- package/dist/x509/fingerprint.js +19 -1
- package/dist/x509/fingerprint.js.map +1 -1
- package/dist/x509.d.ts +2 -2
- package/dist/x509.js +3 -3
- package/package.json +3 -3
package/dist/revocation/crl.js
CHANGED
|
@@ -541,14 +541,9 @@ function checkDeltaCrlCompatibility(e, t) {
|
|
|
541
541
|
if (e.crlNumber >= t.crlNumber) return nonApplicable("delta_crl_incompatible", "delta CRL number must be newer than the complete CRL number");
|
|
542
542
|
if (e.thisUpdate.getTime() > t.thisUpdate.getTime()) return nonApplicable("delta_crl_incompatible", "delta CRL thisUpdate must not precede the complete CRL thisUpdate");
|
|
543
543
|
}
|
|
544
|
-
/**
|
|
544
|
+
/** RFC 5280 §4.2.1.13 requires only the CRL issuer DN, with identical DER encoding. */
|
|
545
545
|
function matchesIndirectCrlIssuer(e, t) {
|
|
546
|
-
|
|
547
|
-
let n = !1;
|
|
548
|
-
for (let r of e) if (r.type === "directoryName") {
|
|
549
|
-
if (directoryNameDerHexMatchesParsedName(r.derHex, t.issuer)) return !0;
|
|
550
|
-
} else n = !0;
|
|
551
|
-
return n ? "unsupported" : !1;
|
|
546
|
+
return e === void 0 || e.length === 0 ? !1 : e.some((e) => e.type !== "directoryName") ? "unsupported" : e.every((e) => e.type === "directoryName" && e.derHex.toLowerCase() === t.issuer.derHex.toLowerCase());
|
|
552
547
|
}
|
|
553
548
|
/** Determines whether a revoked entry's effective issuer matches the certificate's issuer. */
|
|
554
549
|
function matchesRevokedEntryIssuer(e, t, n) {
|