Blame SOURCES/bz1162092-1-fix_ssl_secure.patch

3340af
commit 83add70a8ef7690661d4d6d54500d85cc10d00ba
3340af
Author: Marek 'marx' Grac <mgrac@redhat.com>
3340af
Date:   Mon Nov 10 10:58:54 2014 +0100
3340af
3340af
    fencing: Fix problem with not validating SSL certificates
3340af
    
3340af
    In commit 809b909651118c06d2ab48d7911bbee2e512e478, --ssl-(in)secure options were
3340af
    added. With --ssl be equal to --ssl-secure this was not implemented properly.
3340af
    
3340af
    Resolves: rhbz#1162092
3340af
3340af
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
3340af
index 23270a7..29c0e47 100644
3340af
--- a/fence/agents/lib/fencing.py.py
3340af
+++ b/fence/agents/lib/fencing.py.py
3340af
@@ -996,7 +996,7 @@ def fence_login(options, re_login_string=r"(login\s*: )|(Login Name:  )|(usernam
3340af
 			if options.has_key("--ssl-insecure"):
3340af
 				ssl_opts = "--insecure"
3340af
 
3340af
-			command = '%s %s %s --insecure --crlf -p %s %s' % \
3340af
+			command = '%s %s %s --crlf -p %s %s' % \
3340af
 					(SSL_PATH, gnutls_opts, ssl_opts, options["--ipport"], options["--ip"])
3340af
 			try:
3340af
 				conn = fspawn(options, command)