Re: Data race with SSL_SESSION reuse and tlsext_tick

2014-03-27 Thread Viktor Dukhovni
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();

Data race with SSL_SESSION reuse and tlsext_tick

2014-03-27 Thread Devon H. O'Dell
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(); if (!SSL_set_session(ctx, sp)) { SSL_set_session(ctx, NULL); } unlock(&mtx); r