Struct openssl::pkcs12::Pkcs12Ref [−]
pub struct Pkcs12Ref(_);
Methods
impl Pkcs12Ref[src]
impl Pkcs12Refpub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>[src]
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>Serializes the Pkcs12 to its standard DER encoding.
This corresponds to i2d_PKCS12.
pub fn parse(&self, pass: &str) -> Result<ParsedPkcs12, ErrorStack>[src]
pub fn parse(&self, pass: &str) -> Result<ParsedPkcs12, ErrorStack>Extracts the contents of the Pkcs12.
Trait Implementations
impl Borrow<Pkcs12Ref> for Pkcs12
impl Borrow<Pkcs12Ref> for Pkcs12impl AsRef<Pkcs12Ref> for Pkcs12
impl AsRef<Pkcs12Ref> for Pkcs12impl ForeignTypeRef for Pkcs12Ref
impl ForeignTypeRef for Pkcs12Reftype CType = PKCS12
The raw C type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self[src]
ⓘImportant traits for &'a mut R
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a SelfConstructs a shared instance of this type from its raw type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self[src]
ⓘImportant traits for &'a mut R
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.
impl Send for Pkcs12Ref[src]
impl Send for Pkcs12Refimpl Sync for Pkcs12Ref[src]
impl Sync for Pkcs12Ref