Sorry I left that line out yes I have set that too, maybe 10 is not a good value to set in this functions?

SSL_CTX_set_session_id_context( ctx, "Server", 10 )

Perry


Arno Garrels wrote:

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_id_context( ctx, "Server", 10 )
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]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to