]>
git.proxmox.com Git - rustc.git/blob - vendor/openssl-sys/src/handwritten/ocsp.rs
4 pub enum OCSP_CERTID {}
6 pub enum OCSP_ONEREQ {}
8 pub enum OCSP_REQUEST {}
10 pub enum OCSP_BASICRESP {}
14 pub fn OCSP_cert_to_id(
16 subject
: #[const_ptr_if(any(ossl110, libressl281))] X509,
17 issuer
: #[const_ptr_if(any(ossl110, libressl281))] X509,
18 ) -> *mut OCSP_CERTID
;
23 pub fn OCSP_request_add0_id(r
: *mut OCSP_REQUEST
, id
: *mut OCSP_CERTID
) -> *mut OCSP_ONEREQ
;
25 pub fn OCSP_resp_find_status(
26 bs
: *mut OCSP_BASICRESP
,
30 revtime
: *mut *mut ASN1_GENERALIZEDTIME
,
31 thisupd
: *mut *mut ASN1_GENERALIZEDTIME
,
32 nextupd
: *mut *mut ASN1_GENERALIZEDTIME
,
34 pub fn OCSP_check_validity(
35 thisupd
: *mut ASN1_GENERALIZEDTIME
,
36 nextupd
: *mut ASN1_GENERALIZEDTIME
,
41 pub fn OCSP_response_status(resp
: *mut OCSP_RESPONSE
) -> c_int
;
42 pub fn OCSP_response_get1_basic(resp
: *mut OCSP_RESPONSE
) -> *mut OCSP_BASICRESP
;
44 pub fn OCSP_response_create(status
: c_int
, bs
: *mut OCSP_BASICRESP
) -> *mut OCSP_RESPONSE
;
46 pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP
;
47 pub fn OCSP_BASICRESP_free(r
: *mut OCSP_BASICRESP
);
48 pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE
;
49 pub fn OCSP_RESPONSE_free(r
: *mut OCSP_RESPONSE
);
54 pub fn i2d_OCSP_RESPONSE(a
: #[const_ptr_if(ossl300)] OCSP_RESPONSE, pp: *mut *mut c_uchar) -> c_int;
59 pub fn d2i_OCSP_RESPONSE(
60 a
: *mut *mut OCSP_RESPONSE
,
61 pp
: *mut *const c_uchar
,
63 ) -> *mut OCSP_RESPONSE
;
64 pub fn OCSP_ONEREQ_free(r
: *mut OCSP_ONEREQ
);
65 pub fn OCSP_CERTID_free(id
: *mut OCSP_CERTID
);
66 pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST
;
67 pub fn OCSP_REQUEST_free(r
: *mut OCSP_REQUEST
);
72 pub fn i2d_OCSP_REQUEST(a
: #[const_ptr_if(ossl300)] OCSP_REQUEST, pp: *mut *mut c_uchar) -> c_int;
77 pub fn d2i_OCSP_REQUEST(
78 a
: *mut *mut OCSP_REQUEST
,
79 pp
: *mut *const c_uchar
,
81 ) -> *mut OCSP_REQUEST
;
83 pub fn OCSP_basic_verify(
84 bs
: *mut OCSP_BASICRESP
,
85 certs
: *mut stack_st_X509
,