Blame SOURCES/bz1162092-1-fix_ssl_secure.patch

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