Method: OpenSSL::SSL::SSLSocket#connect

Defined in:
ossl_ssl.c

#connectself

Initiates an SSL/TLS handshake with a server. The handshake may be started after unencrypted data has been sent over the socket.

Returns:

  • (self)


1302
1303
1304
1305
1306
1307
# File 'ossl_ssl.c', line 1302

static VALUE
ossl_ssl_connect(VALUE self)
{
    ossl_ssl_setup(self);
    return ossl_start_ssl(self, SSL_connect, "SSL_connect", 0);
}