method
new
v2_6_3 -
Show latest stable
- Class:
OpenSSL::SSL::SSLSocket
new(p1, p2 = v2)public
Creates a new SSL socket from io which must be a real IO object (not an IO-like object that responds to read/write).
If ctx is provided the SSL Sockets initial params will be taken from the context.
The OpenSSL::Buffering module provides additional IO methods.
This method will freeze the SSLContext if one is provided; however, session management is still allowed in the frozen SSLContext.