pub struct Builder { /* private fields */ }
Expand description
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn dheparams(&mut self, dheparams: &str) -> &mut Self
pub fn dheparams(&mut self, dheparams: &str) -> &mut Self
Set the parameters of an Diffie-Hellman Ephemeral (DHE) key exchange.
§See also
Sourcepub fn ecdhecurves(&mut self, ecdhecurves: &str) -> &mut Self
pub fn ecdhecurves(&mut self, ecdhecurves: &str) -> &mut Self
Set the curves of an Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) key exchange.
§See also
Sourcepub fn keypair_file<P: AsRef<Path>>(
&mut self,
cert: P,
key: P,
ocsp_staple: Option<P>,
) -> &mut Self
pub fn keypair_file<P: AsRef<Path>>( &mut self, cert: P, key: P, ocsp_staple: Option<P>, ) -> &mut Self
Add additional files of a public and private key pair and OCSP staple.
§See also
Sourcepub fn keypair_mem(
&mut self,
cert: &[u8],
key: &[u8],
ocsp_staple: Option<&[u8]>,
) -> &mut Self
pub fn keypair_mem( &mut self, cert: &[u8], key: &[u8], ocsp_staple: Option<&[u8]>, ) -> &mut Self
Add an additional public and private key pair and OCSP staple from memory.
§See also
Sourcepub fn noverifycert(&mut self) -> &mut Self
pub fn noverifycert(&mut self) -> &mut Self
Sourcepub fn noverifyname(&mut self) -> &mut Self
pub fn noverifyname(&mut self) -> &mut Self
Sourcepub fn noverifytime(&mut self) -> &mut Self
pub fn noverifytime(&mut self) -> &mut Self
Sourcepub fn session_fd(&mut self, fd: RawFd) -> &mut Self
pub fn session_fd(&mut self, fd: RawFd) -> &mut Self
Sourcepub fn session_id(&mut self, id: &[u8]) -> &mut Self
pub fn session_id(&mut self, id: &[u8]) -> &mut Self
Sourcepub fn session_lifetime(&mut self, lifetime: usize) -> &mut Self
pub fn session_lifetime(&mut self, lifetime: usize) -> &mut Self
Sourcepub fn ticket_key(&mut self, keyrev: u32, key: &[u8]) -> &mut Self
pub fn ticket_key(&mut self, keyrev: u32, key: &[u8]) -> &mut Self
§See also
Sourcepub fn verify_client(&mut self) -> &mut Self
pub fn verify_client(&mut self) -> &mut Self
Sourcepub fn verify_client_optional(&mut self) -> &mut Self
pub fn verify_client_optional(&mut self) -> &mut Self
Sourcepub fn verify_depth(&mut self, depth: usize) -> &mut Self
pub fn verify_depth(&mut self, depth: usize) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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