instance method
OpenSSL::SSL::Session#time
() -> ::Time
session.time → Time
ext/openssl/ossl_ssl_session.c
View on GitHub ↗
static VALUE
ossl_ssl_session_get_time(VALUE self)
{
SSL_SESSION *ctx;
long t;
GetSSLSession(self, ctx);
t = SSL_SESSION_get_time(ctx);
if (t == 0)
return Qnil;
return rb_funcall(rb_cTime, rb_intern("at"), 1, LONG2NUM(t));
}
Returns the time at which the session was established.