From db33132094f4748ccc63aadbfa4b7446bb95b350 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez@opensuse.org>
Date: Sat, 20 Aug 2011 18:12:28 -0400
Subject: [PATCH] Use SSL_MODE_RELEASE_BUFFERS if available
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
---
ssl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ssl.c b/ssl.c
index ea7b204..459e66c 100644
a
|
b
|
init_ssl (const struct options *options) |
2073 | 2073 | } |
2074 | 2074 | |
2075 | 2075 | /* Set SSL options */ |
| 2076 | #ifdef SSL_MODE_RELEASE_BUFFERS |
| 2077 | SSL_CTX_set_mode (ctx, SSL_MODE_RELEASE_BUFFERS); |
| 2078 | #endif |
2076 | 2079 | SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_OFF); |
2077 | 2080 | SSL_CTX_set_options (ctx, SSL_OP_SINGLE_DH_USE); |
2078 | 2081 | |