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
|
2013-01-14 09:34:26 +01:00
|
|
|
@@ -382,6 +382,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
|
2013-06-17 13:12:27 +02:00
|
|
|
@@ -389,6 +389,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
|
|
|
*/
|