Permalink
Browse files

Use SSL_MODE_RELEASE_BUFFERS where available

  • Loading branch information...
1 parent 4d4de9d commit 62c5cceace9cec4d04d9d6cb912acd2c7c72e64e @tmm1 tmm1 committed Sep 29, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/ssl.cpp
View
@@ -151,6 +151,9 @@ SslContext_t::SslContext_t (bool is_server, const string &privkeyfile, const str
SSL_CTX_set_options (pCtx, SSL_OP_ALL);
//SSL_CTX_set_options (pCtx, (SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3));
+#ifdef SSL_MODE_RELEASE_BUFFERS
+ SSL_CTX_set_mode (pCtx, SSL_MODE_RELEASE_BUFFERS);
+#endif
if (is_server) {
// The SSL_CTX calls here do NOT allocate memory.

0 comments on commit 62c5cce

Please sign in to comment.