This integer returns the current initial length of the buffer.
This sets the initial length of the buffer to length
, if length
> 0, otherwise its value isn’t changed.
This method is called automatically when a new SSLSocket
is created. However, it is not thread-safe and must be called before creating SSLSocket
objects in a multi-threaded program.
Sends “close notify” to the peer and tries to shut down the SSL
connection gracefully.
If sync_close
is set to true
, the underlying IO
is also closed.
Initiates an SSL/TLS handshake with a server. The handshake may be started after unencrypted data has been sent over the socket.
Waits for a SSL/TLS client to initiate a handshake. The handshake may be started after unencrypted data has been sent over the socket.
Sends “close notify” to the peer and tries to shut down the SSL
connection gracefully.
The X509
certificate for this socket endpoint.
Returns the cipher suite actually used in the current session, or nil if no session has been established.
Works similar to TCPServer#accept
.
See IO#close
for details.
Sets the purpose of the context. See Store#purpose=
.
Sets the time used in the verification. If not set, the current time is used.
Verifies the signature of the certificate, with the public key key. key must be an instance of OpenSSL::PKey
.