Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#state
() -> ::String
ssl.state => string
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_ssl_get_state(VALUE self)
{
SSL *ssl;
VALUE ret;
GetSSL(self, ssl);
ret = rb_str_new2(SSL_state_string(ssl));
if (ruby_verbose) {
rb_str_cat2(ret, ": ");
rb_str_cat2(ret, SSL_state_string_long(ssl));
}
return ret;
}
A description of the current connection state. This is for diagnostic purposes only.
See also
#ssl_write
#stop
#ssl_version
#string_new_capacity
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0