Allow setting IMAP servers' SSL version
We now allow setting the SSL version used when connecting to IMAPS servers, and do so via the `ssl_version` configuration option. We default to the current practice (letting python's "ssl" library automatically detect the correct version). There are however rare cases where one must specify the version to use. Signed-off-by: Ryan Kavanagh <rak@debian.org>
This commit is contained in:
@ -172,6 +172,9 @@ class IMAPRepository(BaseRepository):
|
||||
% (self.name, cacertfile))
|
||||
return cacertfile
|
||||
|
||||
def getsslversion(self):
|
||||
return self.getconf('ssl_version', None)
|
||||
|
||||
def get_ssl_fingerprint(self):
|
||||
return self.getconf('cert_fingerprint', None)
|
||||
|
||||
|
Reference in New Issue
Block a user