Ticket #157: 0001-Use-SSL_MODE_RELEASE_BUFFERS-if-available.patch

File 0001-Use-SSL_MODE_RELEASE_BUFFERS-if-available.patch, 866 bytes (added by crrodriguez, 13 years ago)
  • ssl.c

    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) 
    20732073    }
    20742074
    20752075  /* Set SSL options */
     2076#ifdef SSL_MODE_RELEASE_BUFFERS
     2077  SSL_CTX_set_mode (ctx, SSL_MODE_RELEASE_BUFFERS);
     2078#endif
    20762079  SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_OFF);
    20772080  SSL_CTX_set_options (ctx, SSL_OP_SINGLE_DH_USE);
    20782081