Blame SOURCES/openssl-fips-0.9.8e-disable-sslv2.patch

5820f5
diff -up openssl-fips-0.9.8e/doc/apps/ciphers.pod.disable-sslv2 openssl-fips-0.9.8e/doc/apps/ciphers.pod
5820f5
--- openssl-fips-0.9.8e/doc/apps/ciphers.pod.disable-sslv2	2007-04-25 15:15:50.000000000 +0200
5820f5
+++ openssl-fips-0.9.8e/doc/apps/ciphers.pod	2016-02-24 15:49:57.949108087 +0100
5820f5
@@ -383,11 +383,11 @@ Note: these ciphers can also be used in
5820f5
 =head2 SSL v2.0 cipher suites.
5820f5
 
5820f5
  SSL_CK_RC4_128_WITH_MD5                 RC4-MD5
5820f5
- SSL_CK_RC4_128_EXPORT40_WITH_MD5        EXP-RC4-MD5
5820f5
- SSL_CK_RC2_128_CBC_WITH_MD5             RC2-MD5
5820f5
- SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5    EXP-RC2-MD5
5820f5
+ SSL_CK_RC4_128_EXPORT40_WITH_MD5        Not implemented.
5820f5
+ SSL_CK_RC2_128_CBC_WITH_MD5             RC2-CBC-MD5
5820f5
+ SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5    Not implemented.
5820f5
  SSL_CK_IDEA_128_CBC_WITH_MD5            IDEA-CBC-MD5
5820f5
- SSL_CK_DES_64_CBC_WITH_MD5              DES-CBC-MD5
5820f5
+ SSL_CK_DES_64_CBC_WITH_MD5              Not implemented.
5820f5
  SSL_CK_DES_192_EDE3_CBC_WITH_MD5        DES-CBC3-MD5
5820f5
 
5820f5
 =head1 NOTES
5820f5
diff -up openssl-fips-0.9.8e/ssl/ssl_lib.c.disable-sslv2 openssl-fips-0.9.8e/ssl/ssl_lib.c
5820f5
--- openssl-fips-0.9.8e/ssl/ssl_lib.c.disable-sslv2	2016-02-24 15:49:57.927107582 +0100
5820f5
+++ openssl-fips-0.9.8e/ssl/ssl_lib.c	2016-02-24 15:49:57.948108064 +0100
5820f5
@@ -1548,6 +1548,8 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *meth)
5820f5
 	 */
5820f5
 	ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;
5820f5
 
5820f5
+	ret->options |= SSL_OP_NO_SSLv2;
5820f5
+
5820f5
 	return(ret);
5820f5
 err:
5820f5
 	SSLerr(SSL_F_SSL_CTX_NEW,ERR_R_MALLOC_FAILURE);
5820f5
diff -up openssl-fips-0.9.8e/ssl/s2_lib.c.disable-sslv2 openssl-fips-0.9.8e/ssl/s2_lib.c
5820f5
--- openssl-fips-0.9.8e/ssl/s2_lib.c.disable-sslv2	2016-02-24 15:49:57.949108087 +0100
5820f5
+++ openssl-fips-0.9.8e/ssl/s2_lib.c	2016-02-24 15:52:27.697544452 +0100
5820f5
@@ -97,6 +97,7 @@ OPENSSL_GLOBAL SSL_CIPHER ssl2_ciphers[]
5820f5
 	SSL_ALL_CIPHERS,
5820f5
 	SSL_ALL_STRENGTHS,
5820f5
 	},
5820f5
+#if 0
5820f5
 /* RC4_128_EXPORT40_WITH_MD5 */
5820f5
 	{
5820f5
 	1,
5820f5
@@ -110,6 +111,7 @@ OPENSSL_GLOBAL SSL_CIPHER ssl2_ciphers[]
5820f5
 	SSL_ALL_CIPHERS,
5820f5
 	SSL_ALL_STRENGTHS,
5820f5
 	},
5820f5
+#endif
5820f5
 /* RC2_128_CBC_WITH_MD5 */
5820f5
 	{
5820f5
 	1,
5820f5
@@ -123,6 +125,7 @@ OPENSSL_GLOBAL SSL_CIPHER ssl2_ciphers[]
5820f5
 	SSL_ALL_CIPHERS,
5820f5
 	SSL_ALL_STRENGTHS,
5820f5
 	},
5820f5
+#if 0
5820f5
 /* RC2_128_CBC_EXPORT40_WITH_MD5 */
5820f5
 	{
5820f5
 	1,
5820f5
@@ -136,7 +139,7 @@ OPENSSL_GLOBAL SSL_CIPHER ssl2_ciphers[]
5820f5
 	SSL_ALL_CIPHERS,
5820f5
 	SSL_ALL_STRENGTHS,
5820f5
 	},
5820f5
-/* IDEA_128_CBC_WITH_MD5 */
5820f5
+#endif
5820f5
 #ifndef OPENSSL_NO_IDEA
5820f5
 	{
5820f5
 	1,
5820f5
@@ -151,6 +154,7 @@ OPENSSL_GLOBAL SSL_CIPHER ssl2_ciphers[]
5820f5
 	SSL_ALL_STRENGTHS,
5820f5
 	},
5820f5
 #endif
5820f5
+#if 0
5820f5
 /* DES_64_CBC_WITH_MD5 */
5820f5
 	{
5820f5
 	1,
5820f5
@@ -164,6 +168,7 @@ OPENSSL_GLOBAL SSL_CIPHER ssl2_ciphers[]
5820f5
 	SSL_ALL_CIPHERS,
5820f5
 	SSL_ALL_STRENGTHS,
5820f5
 	},
5820f5
+#endif
5820f5
 /* DES_192_EDE3_CBC_WITH_MD5 */
5820f5
 	{
5820f5
 	1,