gmssl-v3-dev icon indicating copy to clipboard operation
gmssl-v3-dev copied to clipboard

bug

Open shatanyumi opened this issue 3 years ago • 0 comments

typedef enum X509_CRLReason { X509_cr_unspecified = 0, X509_cr_key_compromise, X509_cr_ca_compromise, X509_cr_affiliation_changed, X509_cr_superseded, X509_cr_cessation_of_operation, X509_cr_certificate_hold, X509_cr_7_not_assigned = 7, X509_cr_remove_from_crl, X509_cr_privilege_withdrawn, X509_cr_aa_compromise, } CRL_REASON;

const char *crl_reason_text(int reason) { switch (reason) { case X509_cr_unspecified: return "unspecified"; case X509_cr_key_compromise: return "keyCompromise"; case X509_cr_ca_compromise: return "cACompromise"; case X509_cr_affiliation_changed: return "affiliationChanged"; case X509_cr_superseded: return "superseded"; case X509_cr_cessation_of_operation: return "cessationOfOperation"; case X509_cr_certificate_hold: return "certificateHold"; case X509_cr_remove_from_crl: return "removeFromCRL"; case X509_cr_privilege_withdrawn: return "privilegeWithdrawn"; case X509_cr_aa_compromise: return "aACompromise"; } return NULL; }

shatanyumi avatar Dec 15 '21 09:12 shatanyumi