summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libtls/tls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c
index f4bd108dac..246e025e7a 100644
--- a/src/lib/libtls/tls.c
+++ b/src/lib/libtls/tls.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.c,v 1.11 2015/04/15 16:08:43 jsing Exp $ */ 1/* $OpenBSD: tls.c,v 1.12 2015/07/18 22:15:09 bluhm Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -183,6 +183,9 @@ err:
183int 183int
184tls_configure_ssl(struct tls *ctx) 184tls_configure_ssl(struct tls *ctx)
185{ 185{
186 SSL_CTX_set_mode(ctx->ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
187 SSL_CTX_set_mode(ctx->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
188
186 SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv2); 189 SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv2);
187 SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv3); 190 SSL_CTX_set_options(ctx->ssl_ctx, SSL_OP_NO_SSLv3);
188 191