Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

bug #10

Open
shatanyumi opened this issue Dec 15, 2021 · 0 comments
Open

bug #10

shatanyumi opened this issue Dec 15, 2021 · 0 comments

Comments

@shatanyumi
Copy link

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;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant