Gitweb:
http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 1ef8f0605ef021a7f0045d9be19497ef95a2a16e
Parent: 6c2ac2d240e0c9dc9f46698cf605b24ecfee3da2
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Apr 4 14:59:47 2011 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Mon Apr 4 14:59:47 2011 +0200
fence_cisco_ucs, fence_rhevm: Problems with SSL support
Both of these agents are using pycurl. This library has different default
setting across various distributions, so it is better to set SSL options
directly.
Resolves: rhbz#691392
---
fence/agents/cisco_ucs/fence_cisco_ucs.py | 1 +
fence/agents/rhevm/fence_rhevm.py | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fence/agents/cisco_ucs/fence_cisco_ucs.py
b/fence/agents/cisco_ucs/fence_cisco_ucs.py
index a41349a..eda6aed 100755
--- a/fence/agents/cisco_ucs/fence_cisco_ucs.py
+++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py
@@ -88,6 +88,7 @@ def send_command(opt, command):
c.setopt(pycurl.WRITEFUNCTION, b.write)
c.setopt(pycurl.TIMEOUT, int(opt["-Y"]))
c.setopt(pycurl.SSL_VERIFYPEER, 0)
+ c.setopt(pycurl.SSL_VERIFYHOST, 0)
c.perform()
result = b.getvalue()
diff --git a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py
index 6d8df4e..c3ef29a 100755
--- a/fence/agents/rhevm/fence_rhevm.py
+++ b/fence/agents/rhevm/fence_rhevm.py
@@ -100,6 +100,7 @@ def send_command(opt, command, method = "GET"):
c.setopt(pycurl.USERPWD, opt["-l"] + ":" + opt["-p"])
c.setopt(pycurl.TIMEOUT, int(opt["-Y"]))
c.setopt(pycurl.SSL_VERIFYPEER, 0)
+ c.setopt(pycurl.SSL_VERIFYHOST, 0)
if (method == "POST"):
c.setopt(pycurl.POSTFIELDS, "<action />")