components/links/patches/init-openssl.patch
author Danek Duvall <danek.duvall@oracle.com>
Wed, 06 May 2015 10:05:59 -0700
changeset 4263 078df530ebdb
parent 3636 ca7fe1fad4ea
child 5559 a6efae0791c0
permissions -rw-r--r--
21029166 mercurial 3.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3636
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
     1
Disable SSLv2 and SSLv3 in links to "mitigate POODLE vulnerability".
3591
76362dc58c44 20231094 problem in UTILITY/LINKS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
76362dc58c44 20231094 problem in UTILITY/LINKS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
This change will be passed upstream.
76362dc58c44 20231094 problem in UTILITY/LINKS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
3636
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
     5
--- https.c.orig	2015-01-13 06:51:50.062449801 -0800
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
     6
+++ https.c	2015-01-13 06:52:03.963799972 -0800
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
     7
@@ -63,6 +63,7 @@
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
     8
 		context = SSL_CTX_new((void *)m);
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
     9
 		if (!context) return NULL;
3591
76362dc58c44 20231094 problem in UTILITY/LINKS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
 		SSL_CTX_set_options(context, SSL_OP_ALL);
76362dc58c44 20231094 problem in UTILITY/LINKS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
+		SSL_CTX_set_options(context, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
76362dc58c44 20231094 problem in UTILITY/LINKS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
 		SSL_CTX_set_default_verify_paths(context);
3636
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
    13
 
ca7fe1fad4ea 20352128 links should be delivered 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 3591
diff changeset
    14
 	}