Struct openssl::ssl::SslRef []

pub struct SslRef(_);

Methods

impl SslRef
[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 certificate associated with this Ssl, if present.

Returns the private key associated with this Ssl, if present.

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

Returns the protocol selected by performing Next Protocol Negotiation, if any.

The protocol's name is returned is an opaque sequence of bytes. It is up to the client to interpret it.

Returns the protocol selected by performing ALPN, if any.

The protocol's name is returned is an opaque sequence of bytes. It is up to the client to interpret it.

Requires the v102 or v110 features and OpenSSL 1.0.2 or OpenSSL 1.1.0.

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

Changes the context corresponding to the current connection.

Returns the context corresponding to the current connection

Returns the X509 verification configuration.

Requires the v102 or v110 features and OpenSSL 1.0.2 or 1.1.0.

Returns the result of X509 certificate verification.

Returns the SSL session.

Sets the session to be used.

Safety

The caller of this method is responsible for ensuring that the session is associated with the same SslContext as this Ssl.

Determines if the session provided to set_session was successfully reused.

Sets the status response a client wishes the server to reply with.

Returns the server's OCSP response, if present.

Sets the OCSP response to be returned to the client.

Determines if this Ssl is configured for server-side or client-side use.

Sets the extra data at the specified index.

Returns a reference to the extra data at the specified index.

Trait Implementations

impl ForeignTypeRef for SslRef

The raw C type.

Constructs a shared instance of this type from its raw type.

Constructs a mutable reference of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl Debug for SslRef
[src]

Formats the value using the given formatter.