[EMAIL PROTECTED] (Bodo Moeller) writes:

> [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> 
> >     /*
> >      * Set the timeout also for the internal SSLeay cache, because this way
> >      * our inter-process cache is consulted only when it's really necessary.
> >      */
> >     sc = mySrvConfig(mc->rCtx.pConn->server);
> >     t = SSL_get_time(session) + sc->nSessionCacheTimeout;
> >     SSL_set_timeout(session, t);
> 
> This sets the timeout to 2029 A.D., so you'd have to be rather patient
> to actually test it.  SSL_get_time is a time_t containing the time
> when the session was created, measured in seconds since 1970-01-01.
> The second argument to SSL_set_timeout says for how many seconds after
> its creation the session may be used; it's not the expiration date.

Oops. I forgot to say thank you. For shame. Thank you.

-Tom

-- 
Tom Vaughan <tvaughan at aventail dot com>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to