Method: OpenSSL::SSL::Session#timeout
- Defined in:
- ext/openssl/ossl_ssl_session.c
#timeout ⇒ Integer
Returns the timeout value set for the session, in seconds from the established time.
159 160 161 162 163 164 165 166 167 168 169 |
# File 'ext/openssl/ossl_ssl_session.c', line 159
static VALUE
ossl_ssl_session_get_timeout(VALUE self)
{
SSL_SESSION *ctx;
long t;
GetSSLSession(self, ctx);
t = SSL_SESSION_get_timeout(ctx);
return LONG2NUM(t);
}
|