dovecot-2.0: Use SSL_MODE_RELEASE_BUFFERS if available to keep m...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 4 23:54:41 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/a7941e178637
changeset: 12954:a7941e178637
user: Cristian Rodríguez <crrodriguez at opensuse.org>
date: Thu Oct 13 16:19:52 2011 -0300
description:
Use SSL_MODE_RELEASE_BUFFERS if available to keep memory usage low.
diffstat:
src/login-common/ssl-proxy-openssl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 9d8e51404745 -r a7941e178637 src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c Sat Nov 05 00:00:49 2011 +0200
+++ b/src/login-common/ssl-proxy-openssl.c Thu Oct 13 16:19:52 2011 -0300
@@ -925,6 +925,9 @@
STACK_OF(X509_NAME) *xnames = NULL;
SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2);
+#ifdef SSL_MODE_RELEASE_BUFFERS
+ SSL_CTX_set_mode(ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
+#endif
if (*set->ssl_ca != '\0') {
/* set trusted CA certs */
store = SSL_CTX_get_cert_store(ssl_ctx);
More information about the dovecot-cvs
mailing list