Method: OpenSSL::SSL::SSLContext#session_cache_mode=

Defined in:
ossl_ssl.c

#session_cache_mode=(integer) ⇒ Integer

Sets the SSL session cache mode. Bitwise-or together the desired SESSION_CACHE_* constants to set. See SSL_CTX_set_session_cache_mode(3) for details.

Returns:



1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
# File 'ossl_ssl.c', line 1417

static VALUE
ossl_sslctx_set_session_cache_mode(VALUE self, VALUE arg)
{
    SSL_CTX *ctx;

    GetSSLCTX(self, ctx);

    SSL_CTX_set_session_cache_mode(ctx, NUM2LONG(arg));

    return arg;
}