]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Explicitly enable SSL sessions cache
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Sep 2018 14:08:51 +0000 (15:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Sep 2018 14:08:51 +0000 (15:08 +0100)
src/libutil/util.c

index 5f279140c98c415e4323cf4cca712da32c888190..9b5cc6b6cf7c85c80700bcc4c82bddd2c52c31ad 100644 (file)
@@ -2112,6 +2112,9 @@ rspamd_init_libs (void)
        ctx->ssl_ctx_noverify = SSL_CTX_new (SSLv23_method ());
        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 ();