You've already forked linux-packaging-mono
Imported Upstream version 4.6.1.5
Former-commit-id: 2caa1f9d0bda47eb10c52f47196236d819ecb1a3
This commit is contained in:
parent
b7d1d80bf3
commit
36b9cc09f0
@ -305,6 +305,13 @@ namespace Mono.Net.Security
|
||||
return new ValidationResult (result, user_denied, 0, (MonoSslPolicyErrors)errors);
|
||||
}
|
||||
|
||||
// Ignore port number when validating certificates.
|
||||
if (!string.IsNullOrEmpty (host)) {
|
||||
var pos = host.IndexOf (':');
|
||||
if (pos > 0)
|
||||
host = host.Substring (0, pos);
|
||||
}
|
||||
|
||||
ICertificatePolicy policy = ServicePointManager.GetLegacyCertificatePolicy ();
|
||||
|
||||
int status11 = 0; // Error code passed to the obsolete ICertificatePolicy callback
|
||||
|
Reference in New Issue
Block a user