IMAP4.sslobj -> sock
imaplib2 has changed internally to use self.sock for its ssl socket when it used to be sslobj. Reflect that change. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
8800fa37a3
commit
eafea0c880
@ -149,7 +149,7 @@ class WrappedIMAP4_SSL(UsefulIMAPMixIn, IMAP4_SSL):
|
||||
super(WrappedIMAP4_SSL, self).open(host, port)
|
||||
if self._fingerprint or not self.ca_certs:
|
||||
# compare fingerprints
|
||||
fingerprint = sha1(self.sslobj.getpeercert(True)).hexdigest()
|
||||
fingerprint = sha1(self.sock.getpeercert(True)).hexdigest()
|
||||
if fingerprint != self._fingerprint:
|
||||
raise OfflineImapError("Server SSL fingerprint '%s' for hostnam"
|
||||
"e '%s' does not match configured fingerprint. Please ver"
|
||||
|
Loading…
Reference in New Issue
Block a user