diff --git a/src/tls_openssl.c b/src/tls_openssl.c index 28e36be..0df6f0a 100644 --- a/src/tls_openssl.c +++ b/src/tls_openssl.c @@ -575,6 +575,9 @@ tls_t *tls_new(xmpp_conn_t *conn) /* Enable bug workarounds. */ SSL_CTX_set_options(tls->ssl_ctx, SSL_OP_ALL); +#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF + SSL_CTX_set_options(tls->ssl_ctx, SSL_OP_IGNORE_UNEXPECTED_EOF); +#endif /* Disable insecure SSL/TLS versions. */ SSL_CTX_set_options(tls->ssl_ctx, SSL_OP_NO_SSLv2); /* DROWN */