mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 13:43:22 +00:00
Fixed the handling of TLS/SSL sockets
Monotone-Parent: 94879e006105e5001a0e4598b69f35c8117ab394 Monotone-Revision: 1f953cea64fc6c840758f4cc35550f91b6aa07af Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2010-09-02T16:47:06 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -534,22 +534,17 @@
|
||||
port = [url port];
|
||||
|
||||
encryption = @"none";
|
||||
port = @"143";
|
||||
|
||||
if ([url query] && [[url query] caseInsensitiveCompare: @"tls=YES"] == NSOrderedSame)
|
||||
encryption = @"tls";
|
||||
|
||||
if ([port intValue] == 0)
|
||||
if ([scheme caseInsensitiveCompare: @"imaps"] == NSOrderedSame &&
|
||||
![encryption isEqualToString: @"tls"])
|
||||
{
|
||||
if (scheme)
|
||||
{
|
||||
if ([scheme caseInsensitiveCompare: @"imaps"] == NSOrderedSame &&
|
||||
![encryption isEqualToString: @"tls"])
|
||||
{
|
||||
encryption = @"ssl";
|
||||
port = @"993";
|
||||
}
|
||||
}
|
||||
encryption = @"ssl";
|
||||
|
||||
if ([port intValue] == 0)
|
||||
port = @"993";
|
||||
}
|
||||
|
||||
if ([url host])
|
||||
|
||||
Reference in New Issue
Block a user