Struct security_framework::secure_transport::ClientBuilder [−][src]
pub struct ClientBuilder { /* fields omitted */ }
Expand description
A builder type to simplify the creation of client side SslStream
s.
Implementations
Specifies the set of root certificates to trust when verifying the server’s certificate.
Add the certificate the set of root certificates to trust when verifying the server’s certificate.
Specifies whether to trust the built-in certificates in addition to specified anchor certificates.
Specifies whether to trust invalid certificates.
Warning
You should think very carefully before using this method. If invalid certificates are trusted, any certificate for any site will be trusted for use. This includes expired certificates. This introduces significant vulnerabilities, and should only be used as a last resort.
Specifies whether to use Server Name Indication (SNI).
pub fn danger_accept_invalid_hostnames(
&mut self,
danger_accept_invalid_hostnames: bool
) -> &mut Self
[src]
pub fn danger_accept_invalid_hostnames(
&mut self,
danger_accept_invalid_hostnames: bool
) -> &mut Self
[src]Specifies whether to verify that the server’s hostname matches its certificate.
Warning
You should think very carefully before using this method. If hostnames are not verified, any valid certificate for any site will be trusted for use. This introduces significant vulnerabilities, and should only be used as a last resort.
Set a whitelist of enabled ciphers. Any ciphers not whitelisted will be disabled.
Set a blacklist of disabled ciphers. Blacklisted ciphers will be disabled.
Use the specified identity as a SSL/TLS client certificate.
Configure the minimum protocol that this client will support.
Configure the minimum protocol that this client will support.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder