pub struct Pkcs12Ref(_);
Implementations
sourceimpl Pkcs12Ref
impl Pkcs12Ref
sourcepub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the Pkcs12
to its standard DER encoding.
This corresponds to i2d_PKCS12
.
sourcepub fn parse(&self, pass: &str) -> Result<ParsedPkcs12, ErrorStack>
pub fn parse(&self, pass: &str) -> Result<ParsedPkcs12, ErrorStack>
Extracts the contents of the Pkcs12
.
Trait Implementations
sourceimpl ForeignTypeRef for Pkcs12Ref
impl ForeignTypeRef for Pkcs12Ref
impl Send for Pkcs12Ref
impl Sync for Pkcs12Ref
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more