Return a certutils.SSLCert object from get_remote_cert.

This commit is contained in:
Aldo Cortesi 2012-06-28 10:59:03 +12:00
parent bae86480d4
commit 3f9aad53ab
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class TCPClient:
self.connection.do_handshake()
except SSL.Error, v:
raise NetLibError("SSL handshake error: %s"%str(v))
self.cert = self.connection.get_peer_certificate()
self.cert = certutils.SSLCert(self.connection.get_peer_certificate())
self.rfile = FileLike(self.connection)
self.wfile = FileLike(self.connection)
self.ssl_established = True