UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

26 lines (25 loc) • 1.35 kB
//#region src/modules/x509/X509CrlDistributionPoint.ts /** * CRL Revocation Reason Codes (RFC 5280 Section 5.3.1) * These are bit flags used in the reasonFlags field of CRL Distribution Points */ let X509RevocationReason = /* @__PURE__ */ function(X509RevocationReason) { X509RevocationReason[X509RevocationReason["Unused"] = 0] = "Unused"; X509RevocationReason[X509RevocationReason["KeyCompromise"] = 1] = "KeyCompromise"; X509RevocationReason[X509RevocationReason["CACompromise"] = 2] = "CACompromise"; X509RevocationReason[X509RevocationReason["AffiliationChanged"] = 3] = "AffiliationChanged"; X509RevocationReason[X509RevocationReason["Superseded"] = 4] = "Superseded"; X509RevocationReason[X509RevocationReason["CessationOfOperation"] = 5] = "CessationOfOperation"; X509RevocationReason[X509RevocationReason["CertificateHold"] = 6] = "CertificateHold"; X509RevocationReason[X509RevocationReason["PrivilegeWithdrawn"] = 7] = "PrivilegeWithdrawn"; X509RevocationReason[X509RevocationReason["AACompromise"] = 8] = "AACompromise"; return X509RevocationReason; }({}); /** * All possible revocation reason codes as a bitmask. * Covers reasons 0-8 (9 total reasons) */ const ALL_REVOCATION_REASONS_MASK = 511; //#endregion export { ALL_REVOCATION_REASONS_MASK, X509RevocationReason }; //# sourceMappingURL=X509CrlDistributionPoint.mjs.map