diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 15:08:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 15:08:51 +0100 |
commit | 333db5c8ea3bd8140fc6d1f228a912fd21264dfd (patch) | |
tree | 95e111a73a3d63c70267f11fd65fb4e10c1fc641 /src/libutil | |
parent | 90db3c3d5e0b7d4eaf2dd1da03d80ef5fa915cf3 (diff) | |
download | rspamd-333db5c8ea3bd8140fc6d1f228a912fd21264dfd.tar.gz rspamd-333db5c8ea3bd8140fc6d1f228a912fd21264dfd.zip |
[Minor] Explicitly enable SSL sessions cache
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 5f279140c..9b5cc6b6c 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -2113,6 +2113,9 @@ rspamd_init_libs (void) SSL_CTX_set_verify (ctx->ssl_ctx_noverify, SSL_VERIFY_NONE, NULL); SSL_CTX_set_options (ctx->ssl_ctx_noverify, ssl_options); #endif +#ifdef SSL_SESS_CACHE_BOTH + SSL_CTX_set_session_cache_mode (ctx->ssl_ctx, SSL_SESS_CACHE_BOTH); +#endif rspamd_random_seed_fast (); /* Set stack size for pcre */ |