instance method
OpenSSL::X509::StoreContext#time=
(::Time time) -> ::Time
stctx.time = time
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509stctx_set_time(VALUE self, VALUE time)
{
X509_STORE_CTX *store;
long t;
t = NUM2LONG(rb_Integer(time));
GetX509StCtx(self, store);
X509_STORE_CTX_set_time(store, 0, t);
return time;
}
Sets the time used in the verification. If not set, the current time is used.
See also the man page X509_VERIFY_PARAM_set_time(3).