Struct openssl::ssl::SslConnector [] [src]

pub struct SslConnector(_);

A type which wraps client-side streams in a TLS session.

OpenSSL's default configuration is highly insecure. This connector manages the OpenSSL structures, configuring cipher suites, session options, hostname verification, and more.

OpenSSL's built in hostname verification is used when linking against OpenSSL 1.0.2 or 1.1.0, and a custom implementation is used when linking against OpenSSL 1.0.1.

Methods

impl SslConnector
[src]

Initiates a client-side TLS session on a stream.

The domain is used for SNI and hostname verification.

Initiates a client-side TLS session on a stream without performing hostname verification.

The verification configuration of the connector's SslContext is not overridden.

Warning

You should think very carefully before you use this method. If hostname verification is not used, any valid certificate for any site will be trusted for use from any other. This introduces a significant vulnerability to man-in-the-middle attacks.

Trait Implementations

impl Clone for SslConnector
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more