ports/www/lynx/files/patch-CVE-2014-3566
Alex Kozlov 6a6206f048 - Update to 2.8.9.1
Changes: https://lynx.invisible-island.net/lynx2.8.9/breakout/CHANGES

PR:	230568
Submitted by:	Dmitri Goutnik <dg@syrec.org>
Approved by:	jharris@widomaker.com (maintainer)
2018-08-25 21:38:00 +00:00

16 lines
660 B
Text

--- WWW/Library/Implementation/HTTP.c.orig 2018-08-12 12:33:30 UTC
+++ WWW/Library/Implementation/HTTP.c
@@ -206,11 +206,8 @@ SSL *HTGetSSLHandle(void)
#else
SSLeay_add_ssl_algorithms();
if ((ssl_ctx = SSL_CTX_new(TLS_client_method())) != NULL) {
-#ifdef SSL_OP_NO_SSLv2
- SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2);
-#else
- SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL);
-#endif
+ /* Always disable SSLv2 & SSLv3 to "mitigate POODLE vulnerability". */
+ SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
#ifdef SSL_OP_NO_COMPRESSION
SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_COMPRESSION);
#endif