ssl_version()
public
Returns a String representing the SSL/TLS version that was negotiated
for the connection, for example “TLSv1.2”.
static VALUE
ossl_ssl_get_version(VALUE self)
{
SSL *ssl;
ossl_ssl_data_get_struct(self, ssl);
return rb_str_new2(SSL_get_version(ssl));
}