Blame SOURCES/Bug-1001841-disable-sslv2-libssl.patch

c70942
diff -up nss/lib/ssl/config.mk.disableSSL2libssl nss/lib/ssl/config.mk
c70942
--- nss/lib/ssl/config.mk.disableSSL2libssl	2019-03-28 10:36:01.859196244 +0100
c70942
+++ nss/lib/ssl/config.mk	2019-03-28 10:36:53.250120885 +0100
c70942
@@ -61,6 +61,10 @@ ifdef NSS_DISABLE_TLS_1_3
c70942
 DEFINES += -DNSS_DISABLE_TLS_1_3
c70942
 endif
c70942
 
c70942
+ifdef NSS_NO_SSL2
c70942
+DEFINES += -DNSS_NO_SSL2
c70942
+endif
c70942
+
c70942
 ifeq (,$(filter-out DragonFly FreeBSD Linux NetBSD OpenBSD, $(OS_TARGET)))
c70942
 CFLAGS += -std=gnu99
c70942
 endif
c70942
diff -up nss/lib/ssl/sslsock.c.disableSSL2libssl nss/lib/ssl/sslsock.c
c70942
--- nss/lib/ssl/sslsock.c.disableSSL2libssl	2019-03-28 10:36:01.849196454 +0100
c70942
+++ nss/lib/ssl/sslsock.c	2019-03-28 10:36:01.860196223 +0100
c70942
@@ -1363,6 +1363,10 @@ SSLExp_SetMaxEarlyDataSize(PRFileDesc *f
c70942
 static PRBool
c70942
 ssl_IsRemovedCipherSuite(PRInt32 suite)
c70942
 {
c70942
+#ifdef NSS_NO_SSL2
c70942
+    if (SSL_IS_SSL2_CIPHER(suite))
c70942
+        return PR_TRUE;
c70942
+#endif /* NSS_NO_SSL2 */
c70942
     switch (suite) {
c70942
         case SSL_FORTEZZA_DMS_WITH_NULL_SHA:
c70942
         case SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA: