[][src]Struct openssl::ssl::Ssl

pub struct Ssl { /* fields omitted */ }

Methods

impl Ssl
[src]

Sets the verification mode to be used during the handshake process.

Use set_verify_callback to additionally add a callback.

Sets the certificate verification callback to be used during the handshake process.

The callback is provided with a boolean indicating if the preveification process was successful, and an object providing access to the certificate chain. It should return true if the certificate chain is valid and false otherwise.

Sets the host name to be used with SNI (Server Name Indication).

Returns the certificate of the peer, if present.

Returns the name of the protocol used for the connection, e.g. "TLSv1.2", "SSLv3", etc.

Returns the number of bytes remaining in the currently processed TLS record.

Returns the compression currently in use.

The result will be either None, indicating no compression is in use, or a string with the compression name.

Returns the server's name for the current connection

change the context corresponding to the current connection

Returns a clone of the SslContext @ctx (ie: the new context). The old context is freed.

obtain the context corresponding to the current connection

Trait Implementations

impl IntoSsl for Ssl
[src]

impl Clone for Ssl
[src]

Performs copy-assignment from source. Read more

impl Drop for Ssl
[src]

Executes the destructor for this type. Read more

impl Sync for Ssl
[src]

impl Send for Ssl
[src]

impl Debug for Ssl
[src]

Formats the value using the given formatter. Read more

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> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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> BorrowMut for T where
    T: ?Sized
[src]

Mutably 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> 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