From 8f41436cd86fdfba269716e84ab1824e24b84cd0 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 10 Mar 2009 15:21:36 +0000 Subject: [PATCH] * src/tls/tls_drv.c: Fix encryption problem for ejabberd_http after timeout (thanks to Alexey Shchepin)(EJAB-880) SVN Revision: 1986 --- ChangeLog | 5 +++++ src/tls/tls_drv.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index e73f7b39c..2c0dd3f1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-10 Badlop + + * src/tls/tls_drv.c: Fix encryption problem for ejabberd_http + after timeout (thanks to Alexey Shchepin)(EJAB-880) + 2009-03-10 Christophe Romain * src/mod_pubsub/mod_pubsub.erl: Fix PEP with other domains and s2s diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index 257262607..8380ea751 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -344,6 +344,7 @@ static int tls_drv_control(ErlDrvData handle, res = SSL_CTX_check_private_key(ctx); die_unless(res > 0, "SSL_CTX_check_private_key failed"); + SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF); SSL_CTX_set_default_verify_paths(ctx); if (command == SET_CERTIFICATE_FILE_ACCEPT)