Struct openssl::cms::CmsContentInfoRef
[−]
pub struct CmsContentInfoRef(_);
Reference to CMSContentInfo
Methods
impl CmsContentInfoRef
[src]
pub fn decrypt(
&self,
pkey: &PKeyRef,
cert: &X509
) -> Result<Vec<u8>, ErrorStack>
[src]
&self,
pkey: &PKeyRef,
cert: &X509
) -> Result<Vec<u8>, ErrorStack>
Given the sender's private key, pkey
and the recipient's certificiate, cert
,
decrypt the data in self
.
OpenSSL documentation at CMS_decrypt
Trait Implementations
impl ForeignTypeRef for CmsContentInfoRef
type CType = CMS_ContentInfo
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
Returns a raw pointer to the wrapped value.