Perry L. Jones wrote: > Can someone please tell me why my server application does not cache a > session if It set the options to the following? > > SSL_CTX_set_session_cache_mode( ctx, SSL_SESS_CACHE_SERVER ); > > and I don't set the callback functions: > > SSL_CTX_sess_set_new_cb( ctx, NewSessionCallBack ); > SSL_CTX_sess_set_remove_cb( ctx, RemoveSessionCallBack ); > SSL_CTX_sess_set_get_cb( ctx, GetSessionCallBack ); > > If I don't set these I thought it would uses the default openssl > callbacks for session caching no?
I think you need to set at least one session ID context. Have a look at functions SSL_CTX_set_session_id_context() and SSL_set_session_id_context(). Arno Garrels ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]