Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#finished_message
() -> ::String?
ssl.finished_message → string or nil
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_ssl_get_finished(VALUE self)
{
SSL *ssl;
char sizer[1];
size_t len;
GetSSL(self, ssl);
len = SSL_get_finished(ssl, sizer, 0);
if (len == 0)
return Qnil;
VALUE str = rb_str_new(NULL, len);
SSL_get_finished(ssl, RSTRING_PTR(str), len);
return str;
}
Returns the contents of the last Finished message sent to the peer.
See also
#export_keying_material
#group
#connect_nonblock
#hostname=
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0