2012-08-21 17:29:38 +02:00
|
|
|
Index: src/tls/tls_client.c
|
|
|
|
===================================================================
|
2011-10-10 08:27:24 +02:00
|
|
|
--- src/tls/tls_client.c.orig
|
|
|
|
+++ src/tls/tls_client.c
|
2014-05-30 18:55:10 +02:00
|
|
|
@@ -356,6 +356,12 @@ TLS_APPL_STATE *tls_client_init(const TL
|
2011-10-10 08:27:24 +02:00
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ /* Keep memory usage as low as possible */
|
|
|
|
+
|
|
|
|
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
|
|
|
+ SSL_CTX_set_mode(client_ctx, SSL_MODE_RELEASE_BUFFERS);
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* See the verify callback in tls_verify.c
|
|
|
|
*/
|
2012-08-21 17:29:38 +02:00
|
|
|
Index: src/tls/tls_server.c
|
|
|
|
===================================================================
|
2011-10-10 08:27:24 +02:00
|
|
|
--- src/tls/tls_server.c.orig
|
|
|
|
+++ src/tls/tls_server.c
|
2014-05-30 18:55:10 +02:00
|
|
|
@@ -426,6 +426,11 @@ TLS_APPL_STATE *tls_server_init(const TL
|
2011-10-10 08:27:24 +02:00
|
|
|
return (0);
|
|
|
|
}
|
2013-06-17 13:12:27 +02:00
|
|
|
|
2011-10-10 08:27:24 +02:00
|
|
|
+ /* Keep memory usage as low as possible */
|
|
|
|
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
|
|
|
+ SSL_CTX_set_mode(server_ctx, SSL_MODE_RELEASE_BUFFERS);
|
|
|
|
+#endif
|
2013-06-17 13:12:27 +02:00
|
|
|
+
|
2011-10-10 08:27:24 +02:00
|
|
|
/*
|
|
|
|
* See the verify callback in tls_verify.c
|
2013-06-17 13:12:27 +02:00
|
|
|
*/
|