1 use super::super::*; 2 use libc::*; 3 4 pub enum OCSP_CERTID {} 5 6 pub enum OCSP_ONEREQ {} 7 8 pub enum OCSP_REQUEST {} 9 10 pub enum OCSP_BASICRESP {} 11 12 const_ptr_api! { 13 extern "C" { 14 pub fn OCSP_cert_to_id( 15 dgst: *const EVP_MD, 16 subject: #[const_ptr_if(any(ossl110, libressl281))] X509, 17 issuer: #[const_ptr_if(any(ossl110, libressl281))] X509, 18 ) -> *mut OCSP_CERTID; 19 } 20 } 21 22 extern "C" { OCSP_request_add0_id(r: *mut OCSP_REQUEST, id: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ23 pub fn OCSP_request_add0_id(r: *mut OCSP_REQUEST, id: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; 24 OCSP_resp_find_status( bs: *mut OCSP_BASICRESP, id: *mut OCSP_CERTID, status: *mut c_int, reason: *mut c_int, revtime: *mut *mut ASN1_GENERALIZEDTIME, thisupd: *mut *mut ASN1_GENERALIZEDTIME, nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> c_int25 pub fn OCSP_resp_find_status( 26 bs: *mut OCSP_BASICRESP, 27 id: *mut OCSP_CERTID, 28 status: *mut c_int, 29 reason: *mut c_int, 30 revtime: *mut *mut ASN1_GENERALIZEDTIME, 31 thisupd: *mut *mut ASN1_GENERALIZEDTIME, 32 nextupd: *mut *mut ASN1_GENERALIZEDTIME, 33 ) -> c_int; OCSP_check_validity( thisupd: *mut ASN1_GENERALIZEDTIME, nextupd: *mut ASN1_GENERALIZEDTIME, sec: c_long, maxsec: c_long, ) -> c_int34 pub fn OCSP_check_validity( 35 thisupd: *mut ASN1_GENERALIZEDTIME, 36 nextupd: *mut ASN1_GENERALIZEDTIME, 37 sec: c_long, 38 maxsec: c_long, 39 ) -> c_int; 40 OCSP_response_status(resp: *mut OCSP_RESPONSE) -> c_int41 pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> c_int; OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP42 pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; 43 OCSP_response_create(status: c_int, bs: *mut OCSP_BASICRESP) -> *mut OCSP_RESPONSE44 pub fn OCSP_response_create(status: c_int, bs: *mut OCSP_BASICRESP) -> *mut OCSP_RESPONSE; 45 OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP46 pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; OCSP_BASICRESP_free(r: *mut OCSP_BASICRESP)47 pub fn OCSP_BASICRESP_free(r: *mut OCSP_BASICRESP); OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE48 pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; OCSP_RESPONSE_free(r: *mut OCSP_RESPONSE)49 pub fn OCSP_RESPONSE_free(r: *mut OCSP_RESPONSE); 50 } 51 52 const_ptr_api! { 53 extern "C" { 54 pub fn i2d_OCSP_RESPONSE(a: #[const_ptr_if(ossl300)] OCSP_RESPONSE, pp: *mut *mut c_uchar) -> c_int; 55 } 56 } 57 58 extern "C" { d2i_OCSP_RESPONSE( a: *mut *mut OCSP_RESPONSE, pp: *mut *const c_uchar, length: c_long, ) -> *mut OCSP_RESPONSE59 pub fn d2i_OCSP_RESPONSE( 60 a: *mut *mut OCSP_RESPONSE, 61 pp: *mut *const c_uchar, 62 length: c_long, 63 ) -> *mut OCSP_RESPONSE; OCSP_ONEREQ_free(r: *mut OCSP_ONEREQ)64 pub fn OCSP_ONEREQ_free(r: *mut OCSP_ONEREQ); OCSP_CERTID_free(id: *mut OCSP_CERTID)65 pub fn OCSP_CERTID_free(id: *mut OCSP_CERTID); OCSP_REQUEST_new() -> *mut OCSP_REQUEST66 pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; OCSP_REQUEST_free(r: *mut OCSP_REQUEST)67 pub fn OCSP_REQUEST_free(r: *mut OCSP_REQUEST); 68 } 69 70 const_ptr_api! { 71 extern "C" { 72 pub fn i2d_OCSP_REQUEST(a: #[const_ptr_if(ossl300)] OCSP_REQUEST, pp: *mut *mut c_uchar) -> c_int; 73 } 74 } 75 76 extern "C" { d2i_OCSP_REQUEST( a: *mut *mut OCSP_REQUEST, pp: *mut *const c_uchar, length: c_long, ) -> *mut OCSP_REQUEST77 pub fn d2i_OCSP_REQUEST( 78 a: *mut *mut OCSP_REQUEST, 79 pp: *mut *const c_uchar, 80 length: c_long, 81 ) -> *mut OCSP_REQUEST; 82 OCSP_basic_verify( bs: *mut OCSP_BASICRESP, certs: *mut stack_st_X509, st: *mut X509_STORE, flags: c_ulong, ) -> c_int83 pub fn OCSP_basic_verify( 84 bs: *mut OCSP_BASICRESP, 85 certs: *mut stack_st_X509, 86 st: *mut X509_STORE, 87 flags: c_ulong, 88 ) -> c_int; 89 } 90