[−]Struct openssl::pkcs7::Pkcs7Ref  
Reference to Pkcs7
Methods
impl Pkcs7Ref[src] 
impl Pkcs7Refpub fn to_smime(
    &self, 
    input: &[u8], 
    flags: Pkcs7Flags
) -> Result<Vec<u8>, ErrorStack>[src] 
pub fn to_smime(
    &self, 
    input: &[u8], 
    flags: Pkcs7Flags
) -> Result<Vec<u8>, ErrorStack>Converts PKCS#7 structure to S/MIME format
This corresponds to SMIME_write_PKCS7.
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>[src] 
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>Serializes the data into a PEM-encoded PKCS#7 structure.
The output will have a header of -----BEGIN PKCS7-----.
This corresponds to PEM_write_bio_PKCS7.
pub fn decrypt<PT>(
    &self, 
    pkey: &PKeyRef<PT>, 
    cert: &X509Ref, 
    flags: Pkcs7Flags
) -> Result<Vec<u8>, ErrorStack> where
    PT: HasPrivate, [src] 
pub fn decrypt<PT>(
    &self, 
    pkey: &PKeyRef<PT>, 
    cert: &X509Ref, 
    flags: Pkcs7Flags
) -> Result<Vec<u8>, ErrorStack> where
    PT: HasPrivate, Decrypts data using the provided private key.
pkey is the recipient's private key, and cert is the recipient's
certificate.
Returns the decrypted message.
This corresponds to PKCS7_decrypt.
pub fn verify(
    &self, 
    certs: &StackRef<X509>, 
    store: &X509StoreRef, 
    indata: Option<&[u8]>, 
    out: Option<&mut Vec<u8>>, 
    flags: Pkcs7Flags
) -> Result<(), ErrorStack>[src] 
pub fn verify(
    &self, 
    certs: &StackRef<X509>, 
    store: &X509StoreRef, 
    indata: Option<&[u8]>, 
    out: Option<&mut Vec<u8>>, 
    flags: Pkcs7Flags
) -> Result<(), ErrorStack>Verifies the PKCS#7 signedData structure contained by &self.
certs is a set of certificates in which to search for the signer's
certificate. store is a trusted certificate store (used for chain
verification). indata is the signed data if the content is not present
in &self. The content is written to out if it is not None.
This corresponds to PKCS7_verify.
Trait Implementations
impl Sync for Pkcs7Ref[src] 
impl Sync for Pkcs7Refimpl AsRef<Pkcs7Ref> for Pkcs7
impl AsRef<Pkcs7Ref> for Pkcs7impl Send for Pkcs7Ref[src] 
impl Send for Pkcs7Refimpl Borrow<Pkcs7Ref> for Pkcs7
impl Borrow<Pkcs7Ref> for Pkcs7impl ForeignTypeRef for Pkcs7Ref
impl ForeignTypeRef for Pkcs7Reftype CType = PKCS7
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self[src] 
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a SelfConstructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self[src] 
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut SelfConstructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType[src] 
fn as_ptr(&self) -> *mut Self::CTypeReturns a raw pointer to the wrapped value.
Blanket Implementations
impl<T> From for T[src] 
impl<T> From for Timpl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API.  (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more