1 use libc::*;
2 use *;
3 
4 pub enum CMS_ContentInfo {}
5 
6 extern "C" {
7     #[cfg(ossl101)]
CMS_ContentInfo_free(cms: *mut ::CMS_ContentInfo)8     pub fn CMS_ContentInfo_free(cms: *mut ::CMS_ContentInfo);
9     #[cfg(ossl101)]
i2d_CMS_ContentInfo(a: *mut ::CMS_ContentInfo, pp: *mut *mut c_uchar) -> c_int10     pub fn i2d_CMS_ContentInfo(a: *mut ::CMS_ContentInfo, pp: *mut *mut c_uchar) -> c_int;
11 
12     #[cfg(ossl101)]
d2i_CMS_ContentInfo( a: *mut *mut ::CMS_ContentInfo, pp: *mut *const c_uchar, length: c_long, ) -> *mut ::CMS_ContentInfo13     pub fn d2i_CMS_ContentInfo(
14         a: *mut *mut ::CMS_ContentInfo,
15         pp: *mut *const c_uchar,
16         length: c_long,
17     ) -> *mut ::CMS_ContentInfo;
18 }
19 
20 #[cfg(ossl101)]
21 pub const CMS_TEXT: c_uint = 0x1;
22 #[cfg(ossl101)]
23 pub const CMS_NOCERTS: c_uint = 0x2;
24 #[cfg(ossl101)]
25 pub const CMS_NO_CONTENT_VERIFY: c_uint = 0x4;
26 #[cfg(ossl101)]
27 pub const CMS_NO_ATTR_VERIFY: c_uint = 0x8;
28 #[cfg(ossl101)]
29 pub const CMS_NOSIGS: c_uint = 0x4 | 0x8;
30 #[cfg(ossl101)]
31 pub const CMS_NOINTERN: c_uint = 0x10;
32 #[cfg(ossl101)]
33 pub const CMS_NO_SIGNER_CERT_VERIFY: c_uint = 0x20;
34 #[cfg(ossl101)]
35 pub const CMS_NOVERIFY: c_uint = 0x20;
36 #[cfg(ossl101)]
37 pub const CMS_DETACHED: c_uint = 0x40;
38 #[cfg(ossl101)]
39 pub const CMS_BINARY: c_uint = 0x80;
40 #[cfg(ossl101)]
41 pub const CMS_NOATTR: c_uint = 0x100;
42 #[cfg(ossl101)]
43 pub const CMS_NOSMIMECAP: c_uint = 0x200;
44 #[cfg(ossl101)]
45 pub const CMS_NOOLDMIMETYPE: c_uint = 0x400;
46 #[cfg(ossl101)]
47 pub const CMS_CRLFEOL: c_uint = 0x800;
48 #[cfg(ossl101)]
49 pub const CMS_STREAM: c_uint = 0x1000;
50 #[cfg(ossl101)]
51 pub const CMS_NOCRL: c_uint = 0x2000;
52 #[cfg(ossl101)]
53 pub const CMS_PARTIAL: c_uint = 0x4000;
54 #[cfg(ossl101)]
55 pub const CMS_REUSE_DIGEST: c_uint = 0x8000;
56 #[cfg(ossl101)]
57 pub const CMS_USE_KEYID: c_uint = 0x10000;
58 #[cfg(ossl101)]
59 pub const CMS_DEBUG_DECRYPT: c_uint = 0x20000;
60 #[cfg(ossl102)]
61 pub const CMS_KEY_PARAM: c_uint = 0x40000;
62 #[cfg(ossl110)]
63 pub const CMS_ASCIICRLF: c_uint = 0x80000;
64 
65 extern "C" {
66     #[cfg(ossl101)]
SMIME_read_CMS(bio: *mut ::BIO, bcont: *mut *mut ::BIO) -> *mut ::CMS_ContentInfo67     pub fn SMIME_read_CMS(bio: *mut ::BIO, bcont: *mut *mut ::BIO) -> *mut ::CMS_ContentInfo;
68 
69     #[cfg(ossl101)]
CMS_sign( signcert: *mut ::X509, pkey: *mut ::EVP_PKEY, certs: *mut ::stack_st_X509, data: *mut ::BIO, flags: c_uint, ) -> *mut ::CMS_ContentInfo70     pub fn CMS_sign(
71         signcert: *mut ::X509,
72         pkey: *mut ::EVP_PKEY,
73         certs: *mut ::stack_st_X509,
74         data: *mut ::BIO,
75         flags: c_uint,
76     ) -> *mut ::CMS_ContentInfo;
77 
78     #[cfg(ossl101)]
CMS_encrypt( certs: *mut stack_st_X509, data: *mut ::BIO, cipher: *const EVP_CIPHER, flags: c_uint, ) -> *mut ::CMS_ContentInfo79     pub fn CMS_encrypt(
80         certs: *mut stack_st_X509,
81         data: *mut ::BIO,
82         cipher: *const EVP_CIPHER,
83         flags: c_uint,
84     ) -> *mut ::CMS_ContentInfo;
85 
86     #[cfg(ossl101)]
CMS_decrypt( cms: *mut ::CMS_ContentInfo, pkey: *mut ::EVP_PKEY, cert: *mut ::X509, dcont: *mut ::BIO, out: *mut ::BIO, flags: c_uint, ) -> c_int87     pub fn CMS_decrypt(
88         cms: *mut ::CMS_ContentInfo,
89         pkey: *mut ::EVP_PKEY,
90         cert: *mut ::X509,
91         dcont: *mut ::BIO,
92         out: *mut ::BIO,
93         flags: c_uint,
94     ) -> c_int;
95 }
96