Greetings,
I recently ran into an issue where the user-defined session cache
functions are not being called. I had a look at latest snapshot running
openssl s_server -ext_cache which also seems to exhibit the problem.
The problem seems to be in ssl/ssl_sess.c around line 457:
r = tls1_process_ticket(s, session_id, len, limit, &ret);
if (r == -1)
{
fatal = 1;
goto err;
}
else if (r == 0 || (!ret && !len))
goto err;
In the case of s_server: len is > 0 and ret is 0 and it takes this
branch, never executing the get callback. Should this be "((!ret &&
!len) || (r == 0 && !len))"?
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]