On Wed, Mar 26, 2014 at 05:25:49PM -0400, Devon H. O'Dell wrote: > Hi there, > > I'm working on an application that shares SSL_SESSION pointers between > SSL_CTXs in multiple threads. The logic for sharing the session is > roughly as follows: > > lock(&mtx); > sp = get_cached_session_pointer();
Don't share session *objects*, serialize the session to DER form, and cache that. Each SSL connectiont that wants to re-use a session will de-serialize the session creating a new session object. You'll need the new_session_cb callbacks, ... to detect when new sessions are created despite your best attempt to reuse, and then cache a replacement session. -- Viktor. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org