1use libc::*;
2
3pub const OCSP_REVOKED_STATUS_NOSTATUS: c_int = -1;
4pub const OCSP_REVOKED_STATUS_UNSPECIFIED: c_int = 0;
5pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: c_int = 1;
6pub const OCSP_REVOKED_STATUS_CACOMPROMISE: c_int = 2;
7pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: c_int = 3;
8pub const OCSP_REVOKED_STATUS_SUPERSEDED: c_int = 4;
9pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: c_int = 5;
10pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: c_int = 6;
11pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: c_int = 8;
12
13pub const OCSP_NOCERTS: c_ulong = 0x1;
14pub const OCSP_NOINTERN: c_ulong = 0x2;
15pub const OCSP_NOSIGS: c_ulong = 0x4;
16pub const OCSP_NOCHAIN: c_ulong = 0x8;
17pub const OCSP_NOVERIFY: c_ulong = 0x10;
18pub const OCSP_NOEXPLICIT: c_ulong = 0x20;
19pub const OCSP_NOCASIGN: c_ulong = 0x40;
20pub const OCSP_NODELEGATED: c_ulong = 0x80;
21pub const OCSP_NOCHECKS: c_ulong = 0x100;
22pub const OCSP_TRUSTOTHER: c_ulong = 0x200;
23pub const OCSP_RESPID_KEY: c_ulong = 0x400;
24pub const OCSP_NOTIME: c_ulong = 0x800;
25
26pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: c_int = 0;
27pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: c_int = 1;
28pub const OCSP_RESPONSE_STATUS_INTERNALERROR: c_int = 2;
29pub const OCSP_RESPONSE_STATUS_TRYLATER: c_int = 3;
30pub const OCSP_RESPONSE_STATUS_SIGREQUIRED: c_int = 5;
31pub const OCSP_RESPONSE_STATUS_UNAUTHORIZED: c_int = 6;
32
33pub const V_OCSP_CERTSTATUS_GOOD: c_int = 0;
34pub const V_OCSP_CERTSTATUS_REVOKED: c_int = 1;
35pub const V_OCSP_CERTSTATUS_UNKNOWN: c_int = 2;
36