Struct security_framework::secure_transport::MidHandshakeSslStream
[−]
[src]
pub struct MidHandshakeSslStream<S> { /* fields omitted */ }
An SSL stream midway through the handshake process.
Methods
impl<S> MidHandshakeSslStream<S>
[src]
fn get_ref(&self) -> &S
Returns a shared reference to the inner stream.
fn get_mut(&mut self) -> &mut S
Returns a mutable reference to the inner stream.
fn context(&self) -> &SslContext
Returns a shared reference to the SslContext
of the stream.
fn context_mut(&mut self) -> &mut SslContext
Returns a mutable reference to the SslContext
of the stream.
fn server_auth_completed(&self) -> bool
Returns true
iff break_on_server_auth
was set and the handshake has
progressed to that point.
fn client_cert_requested(&self) -> bool
Returns true
iff break_on_cert_requested
was set and the handshake
has progressed to that point.
fn would_block(&self) -> bool
Returns true
iff the underlying stream returned an error with the
WouldBlock
kind.
fn reason(&self) -> OSStatus
Deprecated
fn error(&self) -> &Error
Returns the error which caused the handshake interruption.
fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
Restarts the handshake process.