1 | use super::super::*; |
2 | use libc::*; |
3 | |
4 | pub enum CMS_ContentInfo {} |
5 | |
6 | extern "C" { |
7 | #[cfg (ossl101)] |
8 | pub fn CMS_ContentInfo_free(cms: *mut CMS_ContentInfo); |
9 | } |
10 | |
11 | const_ptr_api! { |
12 | extern "C" { |
13 | #[cfg (ossl101)] |
14 | pub fn i2d_CMS_ContentInfo(a: #[const_ptr_if(ossl300)] CMS_ContentInfo, pp: *mut *mut c_uchar) -> c_int; |
15 | } |
16 | } |
17 | |
18 | extern "C" { |
19 | #[cfg (ossl101)] |
20 | pub fn d2i_CMS_ContentInfo( |
21 | a: *mut *mut CMS_ContentInfo, |
22 | pp: *mut *const c_uchar, |
23 | length: c_long, |
24 | ) -> *mut CMS_ContentInfo; |
25 | |
26 | #[cfg (ossl101)] |
27 | pub fn SMIME_read_CMS(bio: *mut BIO, bcont: *mut *mut BIO) -> *mut CMS_ContentInfo; |
28 | |
29 | #[cfg (ossl101)] |
30 | pub fn CMS_sign( |
31 | signcert: *mut X509, |
32 | pkey: *mut EVP_PKEY, |
33 | certs: *mut stack_st_X509, |
34 | data: *mut BIO, |
35 | flags: c_uint, |
36 | ) -> *mut CMS_ContentInfo; |
37 | |
38 | #[cfg (ossl101)] |
39 | pub fn CMS_verify( |
40 | cms: *mut CMS_ContentInfo, |
41 | certs: *mut stack_st_X509, |
42 | store: *mut X509_STORE, |
43 | detached_data: *mut BIO, |
44 | out: *mut BIO, |
45 | flags: c_uint, |
46 | ) -> c_int; |
47 | |
48 | #[cfg (ossl101)] |
49 | pub fn CMS_encrypt( |
50 | certs: *mut stack_st_X509, |
51 | data: *mut BIO, |
52 | cipher: *const EVP_CIPHER, |
53 | flags: c_uint, |
54 | ) -> *mut CMS_ContentInfo; |
55 | |
56 | #[cfg (ossl101)] |
57 | pub fn CMS_decrypt( |
58 | cms: *mut CMS_ContentInfo, |
59 | pkey: *mut EVP_PKEY, |
60 | cert: *mut X509, |
61 | dcont: *mut BIO, |
62 | out: *mut BIO, |
63 | flags: c_uint, |
64 | ) -> c_int; |
65 | } |
66 | |