Lines Matching refs:reason_code
2815 int reason_code = -1; in make_revoked() local
2823 i = unpack_revinfo(&revDate, &reason_code, &hold, &comp_time, str); in make_revoked()
2831 if (rev && (reason_code != OCSP_REVOKED_STATUS_NOSTATUS)) in make_revoked()
2834 if (!rtmp || !ASN1_ENUMERATED_set(rtmp, reason_code)) in make_revoked()
2851 if (reason_code != OCSP_REVOKED_STATUS_NOSTATUS) in make_revoked()
2909 int reason_code = -1; in unpack_revinfo() local
2948 reason_code = i; in unpack_revinfo()
2952 if (reason_code == OCSP_REVOKED_STATUS_NOSTATUS) in unpack_revinfo()
2958 if (reason_code == 7) in unpack_revinfo()
2959 reason_code = OCSP_REVOKED_STATUS_REMOVEFROMCRL; in unpack_revinfo()
2960 else if (reason_code == 8) /* Hold instruction */ in unpack_revinfo()
2967 reason_code = OCSP_REVOKED_STATUS_CERTIFICATEHOLD; in unpack_revinfo()
2977 else if ((reason_code == 9) || (reason_code == 10)) in unpack_revinfo()
2990 if (reason_code == 9) in unpack_revinfo()
2991 reason_code = OCSP_REVOKED_STATUS_KEYCOMPROMISE; in unpack_revinfo()
2993 reason_code = OCSP_REVOKED_STATUS_CACOMPROMISE; in unpack_revinfo()
2997 if (preason) *preason = reason_code; in unpack_revinfo()