rpms/m2crypto/FC-5 m2crypto-0.15-Connection.patch,NONE,1.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Apr 19 16:13:36 UTC 2006


Author: mitr

Update of /cvs/dist/rpms/m2crypto/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv16723

Added Files:
	m2crypto-0.15-Connection.patch 
Log Message:
* Wed Apr 19 2006 Miloslav Trmac <mitr at redhat.com> - 0.15-3.2.fc5.1
- Fix SSL.Connection.accept (#188742)


m2crypto-0.15-Connection.patch:
 Connection.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE m2crypto-0.15-Connection.patch ---
--- m2crypto-0.15/M2Crypto/SSL/Connection.py.Connection	2006-04-19 17:55:18.000000000 +0200
+++ m2crypto-0.15/M2Crypto/SSL/Connection.py	2006-04-19 17:55:31.000000000 +0200
@@ -17,7 +17,7 @@
 #SSLError = getattr(__import__('M2Crypto.SSL', globals(), locals(), 'SSLError'), 'SSLError')
 from M2Crypto.SSL import SSLError
 
-def _serverPostConnectionCheck(peerX509, expectedHost):
+def _serverPostConnectionCheck(*args, **kw):
     return 1
 
 class Connection:
@@ -111,9 +111,9 @@
         ssl.setup_ssl()
         ssl.set_accept_state()
         ssl.accept_ssl()
-        check = getattr(self, 'postConnectionCheck', Connection.serverPostConnectionCheck)
+        check = getattr(self, 'postConnectionCheck', self.serverPostConnectionCheck)
         if check is not None:
-            if not check(self.get_peer_cert(), self.addr[0]):
+            if not check(self.get_peer_cert(), ssl.addr[0]):
                 raise Checker.SSLVerificationError, 'post connection check failed'
         return ssl, addr
 
@@ -129,7 +129,7 @@
         self.setup_ssl()
         self.set_connect_state()
         ret = self.connect_ssl()
-        check = getattr(self, 'postConnectionCheck', Connection.clientPostConnectionCheck)
+        check = getattr(self, 'postConnectionCheck', self.clientPostConnectionCheck)
         if check is not None:
             if not check(self.get_peer_cert(), self.addr[0]):
                 raise Checker.SSLVerificationError, 'post connection check failed'




More information about the fedora-cvs-commits mailing list