From 2af682bdd534317f2caf28ac59db698593f6d9cc Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 20 Jan 2015 08:53:50 -0500 Subject: [PATCH] use SSL_CTX_set_read_ahead to fix for openssl 1.0.1k fixes #62 --- daemon/dtls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/dtls.c b/daemon/dtls.c index 4e35ca3fa..b63da4bae 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -455,6 +455,8 @@ int dtls_connection_init(struct packet_stream *ps, int active, struct dtls_cert if (SSL_CTX_set_tlsext_use_srtp(d->ssl_ctx, ciphers_str)) goto error; + if (SSL_CTX_set_read_ahead(d->ssl_ctx, 1)) + goto error; d->ssl = SSL_new(d->ssl_ctx); if (!d->ssl)