OpenSSL::SSL::Socket
Inherits IO::Buffered / IO / Reference / Object
Instance methods
Returns the negotiated ALPN protocol (eg: "h2") of nil if no protocol was
negotiated.
Returns true if this IO is closed.
IO defines returns false, but including types may override.
Returns the OpenSSL::X509::Certificate the peer presented, if a
connection was established.
NOTE: Due to the protocol definition, a TLS/SSL server will always send a
certificate, if present. A client will only send a certificate when
explicitly requested to do so by the server (see SSL_CTX_set_verify(3)). If
an anonymous cipher is used, no certificates are sent. That a certificate
is returned does not indicate information about the verification state.
If #sync_close? is true, closing this socket will
close the underlying IO.
Reads at most slice.size bytes from the wrapped IO into slice.
Returns the number of bytes read.
TODO: Add return type restriction Int32
Writes slice entirely into the wrapped IO.
TODO: Add return type restriction Nil