Method: OpenSSL::SSL::SSLContext#session_remove

Defined in:
ossl_ssl.c

#session_remove(session) ⇒ Object

Removes session from the session cache.



1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
# File 'ossl_ssl.c', line 1381

static VALUE
ossl_sslctx_session_remove(VALUE self, VALUE arg)
{
    SSL_CTX *ctx;
    SSL_SESSION *sess;

    GetSSLCTX(self, ctx);
    GetSSLSession(arg, sess);

    return SSL_CTX_remove_session(ctx, sess) == 1 ? Qtrue : Qfalse;
}