diff options
| author | Stephen Demos <[email protected]> | 2017-08-08 11:57:46 -0700 |
|---|---|---|
| committer | Stephen Demos <[email protected]> | 2017-08-09 12:26:45 -0700 |
| commit | caf7b8ecbc845739e9ef67a66ff145563b0ae1aa (patch) | |
| tree | dbc1aa454de9b2662a89a0e1e8bbd1029e0cf104 /openssl-sys/src | |
| parent | Init in bn_ctx constructor (diff) | |
| download | rust-openssl-caf7b8ecbc845739e9ef67a66ff145563b0ae1aa.tar.xz rust-openssl-caf7b8ecbc845739e9ef67a66ff145563b0ae1aa.zip | |
added cms decryption
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 353f619f..2761f53d 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -32,6 +32,7 @@ pub enum ASN1_TYPE {} pub enum ASN1_OBJECT {} pub enum BN_CTX {} pub enum BN_GENCB {} +pub enum CMS_ContentInfo {} pub enum CONF {} pub enum CONF_METHOD {} pub enum COMP_METHOD {} @@ -2575,4 +2576,21 @@ extern "C" { ) -> c_int; pub fn HMAC_Update(ctx: *mut HMAC_CTX, data: *const c_uchar, len: size_t) -> c_int; pub fn HMAC_Final(ctx: *mut HMAC_CTX, md: *mut c_uchar, len: *mut c_uint) -> c_int; + + #[cfg(not(libressl))] + pub fn CMS_decrypt( + cms: *mut CMS_ContentInfo, + pkey: *mut EVP_PKEY, + cert: *mut X509, + dcont: *mut BIO, + out: *mut BIO, + flags: c_uint, + ) -> c_int; + #[cfg(not(libressl))] + pub fn SMIME_read_CMS( + bio: *mut BIO, + bcont: *mut *mut BIO, + ) -> *mut CMS_ContentInfo; + #[cfg(not(libressl))] + pub fn CMS_ContentInfo_free(cms: *mut CMS_ContentInfo); } |