End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLContext#session_add
ctx.session_add(session) → true | false
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_sslctx_session_add(VALUE self, VALUE arg)
{
SSL_CTX *ctx;
SSL_SESSION *sess;
GetSSLCTX(self, ctx);
GetSSLSession(arg, sess);
return SSL_CTX_add_session(ctx, sess) == 1 ? Qtrue : Qfalse;
}
Adds session to the session cache.
See also
#security_level=
#session_cache_mode
#security_level
#session_cache_mode=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1