aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorUmang Raghuvanshi <[email protected]>2018-04-20 17:15:04 +0530
committerUmang Raghuvanshi <[email protected]>2018-04-20 17:15:04 +0530
commit8ce5dee00d1f7658e0790b60dfcb86d4b2f81621 (patch)
tree604a482d3ca9f69e0d9f2c7425e135da5f7635a2 /openssl-sys/src
parentMerge pull request #899 from rohit-lshift/master (diff)
downloadrust-openssl-8ce5dee00d1f7658e0790b60dfcb86d4b2f81621.tar.xz
rust-openssl-8ce5dee00d1f7658e0790b60dfcb86d4b2f81621.zip
Add the CMS_sign and i2d_CMS_ContentInfo function bindings
This adds the CMS_sign and i2d_CMS_ContentInfo bindings in the openssl-sys crate and Rusty wrappers in the openssl crate.
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 85527f8f..42bd8268 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -5,8 +5,8 @@
extern crate libc;
use libc::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong, c_void, size_t, FILE};
-use std::ptr;
use std::mem;
+use std::ptr;
#[cfg(any(ossl101, ossl102))]
mod ossl10x;
@@ -2846,6 +2846,16 @@ extern "C" {
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);
+ #[cfg(not(libressl))]
+ pub fn CMS_sign(
+ signcert: *const X509,
+ pkey: *const EVP_PKEY,
+ certs: *const stack_st_X509,
+ data: *mut BIO,
+ flags: c_uint,
+ ) -> *mut CMS_ContentInfo;
+ #[cfg(not(libressl))]
+ pub fn i2d_CMS_ContentInfo(a: *mut CMS_ContentInfo, pp: *mut *mut c_uchar) -> c_int;
#[cfg(not(libressl))]
pub fn FIPS_mode_set(onoff: c_int) -> c_int;