pub struct Pkcs12Ref(/* private fields */);
Implementations§
source§impl 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>
👎Deprecated since 0.10.46: Use parse2 instead
pub fn parse(&self, pass: &str) -> Result<ParsedPkcs12, ErrorStack>
Deprecated.
sourcepub fn parse2(&self, pass: &str) -> Result<ParsedPkcs12_2, ErrorStack>
pub fn parse2(&self, pass: &str) -> Result<ParsedPkcs12_2, ErrorStack>
Extracts the contents of the Pkcs12
.
This corresponds to PKCS12_parse
.
Trait Implementations§
source§impl ForeignTypeRef for Pkcs12Ref
impl ForeignTypeRef for Pkcs12Ref
impl Send for Pkcs12Ref
impl Sync for Pkcs12Ref
Auto Trait Implementations§
impl !Freeze for Pkcs12Ref
impl !RefUnwindSafe for Pkcs12Ref
impl Unpin for Pkcs12Ref
impl UnwindSafe for Pkcs12Ref
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more