Struct mbedtls::ssl::context::HandshakeContext
source · pub struct HandshakeContext<'ctx> { /* private fields */ }
Implementations
sourceimpl<'ctx> HandshakeContext<'ctx>
impl<'ctx> HandshakeContext<'ctx>
pub fn set_authmode(&mut self, am: AuthMode)
pub fn set_ca_list<C: Into<&'ctx mut LinkedCertificate>>(
&mut self,
list: Option<C>,
crl: Option<&'ctx mut Crl>
)
sourcepub fn push_cert<C: Into<&'ctx mut LinkedCertificate>>(
&mut self,
chain: C,
key: &'ctx mut Pk
) -> Result<()>
pub fn push_cert<C: Into<&'ctx mut LinkedCertificate>>(
&mut self,
chain: C,
key: &'ctx mut Pk
) -> Result<()>
If this is never called, will use the set of private keys and
certificates configured in the Config
associated with this Context
.
If this is called at least once, all those are ignored and the set
specified using this function is used.
Methods from Deref<Target = Context<'ctx>>
Trait Implementations
Auto Trait Implementations
impl<'ctx> RefUnwindSafe for HandshakeContext<'ctx>
impl<'ctx> !Send for HandshakeContext<'ctx>
impl<'ctx> !Sync for HandshakeContext<'ctx>
impl<'ctx> Unpin for HandshakeContext<'ctx>
impl<'ctx> !UnwindSafe for HandshakeContext<'ctx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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