From 5d56decdc42dc9b3a24a0c9d2abaad2dd2892f00 Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Mon, 19 Apr 2010 13:28:25 +0300 Subject: [PATCH] A fix for the SASL EXTERNAL. Thanks to Calmar. Fixes #5704 --- src/common/xmpp/tls_nb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/xmpp/tls_nb.py b/src/common/xmpp/tls_nb.py index c87a9ae3d..4cf2a5c21 100644 --- a/src/common/xmpp/tls_nb.py +++ b/src/common/xmpp/tls_nb.py @@ -355,6 +355,7 @@ class NonBlockingTLS(PlugIn): # If we are going to use a client cert/key pair for authentication, # we choose TLSv1 method. tcpsock._sslContext = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD) + client_cert_path = self._owner._owner._caller.client_cert log.debug('Using client cert and key from %s' % conn.client_cert) try: p12 = OpenSSL.crypto.load_pkcs12(open(client_cert_path).read())