From 96575db11d45c3dbe752757923465286042275d0 Mon Sep 17 00:00:00 2001 From: Murat Date: Mon, 31 Aug 2020 20:19:15 +0200 Subject: Add from_der and to_der to PKCS7 --- openssl-sys/src/pkcs7.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openssl-sys') 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, -- cgit v1.2.3