End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#cipher
ssl.cipher → nil or [name, version, bits, alg_bits]
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_ssl_get_cipher(VALUE self)
{
SSL *ssl;
const SSL_CIPHER *cipher;
GetSSL(self, ssl);
cipher = SSL_get_current_cipher(ssl);
return cipher ? ossl_ssl_cipher_to_ary(cipher) : Qnil;
}
Returns the cipher suite actually used in the current session, or nil if no session has been established.