File monit-no_sslv3.patch of Package monit

Index: src/ssl.c
===================================================================
--- src/ssl.c.orig
+++ src/ssl.c
@@ -604,6 +604,10 @@ ssl_connection *new_ssl_connection(char
 #endif
                         break;
                 case SSL_VERSION_SSLV3:
+#ifdef OPENSSL_NO_SSL3
+			LogError("SSLv3 is not allowed - use TLS\n");
+			goto sslerror;
+#else
 #ifdef OPENSSL_FIPS
                         if (FIPS_mode()) {
                                 LogError("SSLv3 is not allowed in FIPS mode - use TLS\n");
@@ -611,6 +615,7 @@ ssl_connection *new_ssl_connection(char
                         } else
 #endif
                                 ssl->method = SSLv3_client_method();
+#endif
                         break;
                 case SSL_VERSION_TLSV1:
                         ssl->method = TLSv1_client_method();
openSUSE Build Service is sponsored by