diff options
| author | Steven Fackler <[email protected]> | 2017-08-09 14:20:51 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-08-09 14:20:51 -0700 |
| commit | 4c3b3476f462871bfecf929afc5e9564c7fdc10a (patch) | |
| tree | 8132826185e249e91b2f2863e4601bae15b778b3 /openssl-sys/src | |
| parent | Delete DTLS tests (diff) | |
| parent | added cms decryption (diff) | |
| download | rust-openssl-4c3b3476f462871bfecf929afc5e9564c7fdc10a.tar.xz rust-openssl-4c3b3476f462871bfecf929afc5e9564c7fdc10a.zip | |
Merge pull request #675 from sdemos/master
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 f0e3e18a..664cf58d 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 {} @@ -2576,4 +2577,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); } |