summaryrefslogtreecommitdiff
path: root/openssl-sys
diff options
context:
space:
mode:
authorMurat <m.seker@aol.com>2020-08-31 20:19:15 +0200
committerMurat <m.seker@aol.com>2020-08-31 20:23:10 +0200
commit96575db11d45c3dbe752757923465286042275d0 (patch)
treef52279a848001093c33a2d06220253d28ae5fee7 /openssl-sys
parent16a0e6f674b529114486d18df42c1b94907ebd3a (diff)
downloadrust-openssl-96575db11d45c3dbe752757923465286042275d0.zip
Add from_der and to_der to PKCS7
Diffstat (limited to 'openssl-sys')
-rw-r--r--openssl-sys/src/pkcs7.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/pkcs7.rs b/openssl-sys/src/pkcs7.rs
index 454a04df..5aa55ff8 100644
--- a/openssl-sys/src/pkcs7.rs
+++ b/openssl-sys/src/pkcs7.rs
@@ -29,6 +29,10 @@ pub const PKCS7_REUSE_DIGEST: c_int = 0x8000;
pub const PKCS7_NO_DUAL_CONTENT: c_int = 0x10000;
extern "C" {
+ pub fn d2i_PKCS7(a: *mut *mut PKCS7, pp: *mut *const c_uchar, length: c_long) -> *mut PKCS7;
+
+ pub fn i2d_PKCS7(a: *mut PKCS7, buf: *mut *mut u8) -> c_int;
+
pub fn PKCS7_encrypt(
certs: *mut stack_st_X509,
b: *mut BIO,