PHP 8.3.31
Preview: decode_asn1.py Size: 1.12 KB
/opt/cloudlinux/venv/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/decode_asn1.py

# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.

from __future__ import annotations

from cryptography import x509

#    CRLReason ::= ENUMERATED {
#        unspecified             (0),
#        keyCompromise           (1),
#        cACompromise            (2),
#        affiliationChanged      (3),
#        superseded              (4),
#        cessationOfOperation    (5),
#        certificateHold         (6),
#             -- value 7 is not used
#        removeFromCRL           (8),
#        privilegeWithdrawn      (9),
#        aACompromise           (10) }
_CRL_ENTRY_REASON_ENUM_TO_CODE = {
    x509.ReasonFlags.unspecified: 0,
    x509.ReasonFlags.key_compromise: 1,
    x509.ReasonFlags.ca_compromise: 2,
    x509.ReasonFlags.affiliation_changed: 3,
    x509.ReasonFlags.superseded: 4,
    x509.ReasonFlags.cessation_of_operation: 5,
    x509.ReasonFlags.certificate_hold: 6,
    x509.ReasonFlags.remove_from_crl: 8,
    x509.ReasonFlags.privilege_withdrawn: 9,
    x509.ReasonFlags.aa_compromise: 10,
}

Directory Contents

Dirs: 1 × Files: 9

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 07:30:34
Edit Download
15.59 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
71.51 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
10.12 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.96 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
1.12 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
11.21 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
21.31 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
2.14 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
305 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).