[][src]Struct security_framework::secure_transport::ClientBuilder

pub struct ClientBuilder { /* fields omitted */ }

A builder type to simplify the creation of client side SslStreams.

Methods

impl ClientBuilder
[src]

Creates a new builder with default options.

Specifies 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.

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.

Requires the OSX_10_8 (or greater) feature.

Configure the minimum protocol that this client will support.

Requires the OSX_10_8 (or greater) feature.

Initiates a new SSL/TLS session over a stream connected to the specified domain.

Note that this method assumes that the stream S is in blocking mode, and it will return an error if the stream is set to nonblocking mode. If the stream S is in asynchronous operation (or may be) then you may use handshake2 instead.

Note that this method will likely be removed in the next major release in favor of handshake2.

Initiates a new SSL/TLS session over a stream connected to the specified domain.

Initiates a new SSL/TLS session over a stream without providing a domain.

Warning

You should think very carefully before using 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 Debug for ClientBuilder
[src]

Formats the value using the given formatter. Read more

impl Default for ClientBuilder
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for ClientBuilder

impl Sync for ClientBuilder

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more