You've already forked linux-packaging-mono
Imported Upstream version 4.4.2.8
Former-commit-id: 35c92f977d4776b96adf6e2e2f8ebbe9c6724ef4
This commit is contained in:
parent
0b4a830db1
commit
42e38034c4
@ -144,13 +144,25 @@ namespace Mono.Net.Security
|
||||
bool result;
|
||||
|
||||
#if MONODROID
|
||||
result = AndroidPlatform.TrustEvaluateSsl (certs);
|
||||
if (result) {
|
||||
// chain.Build() + GetErrorsFromChain() (above) will ALWAYS fail on
|
||||
// Android (there are no mozroots or preinstalled root certificates),
|
||||
// thus `errors` will ALWAYS have RemoteCertificateChainErrors.
|
||||
// Android just verified the chain; clear RemoteCertificateChainErrors.
|
||||
errors &= ~SslPolicyErrors.RemoteCertificateChainErrors;
|
||||
try {
|
||||
result = AndroidPlatform.TrustEvaluateSsl (certs);
|
||||
if (result) {
|
||||
// FIXME: check whether this is still correct.
|
||||
//
|
||||
// chain.Build() + GetErrorsFromChain() (above) will ALWAYS fail on
|
||||
// Android (there are no mozroots or preinstalled root certificates),
|
||||
// thus `errors` will ALWAYS have RemoteCertificateChainErrors.
|
||||
// Android just verified the chain; clear RemoteCertificateChainErrors.
|
||||
errors &= ~SslPolicyErrors.RemoteCertificateChainErrors;
|
||||
} else {
|
||||
errors |= SslPolicyErrors.RemoteCertificateChainErrors;
|
||||
status11 = unchecked((int)0x800B010B);
|
||||
}
|
||||
} catch {
|
||||
result = false;
|
||||
errors |= SslPolicyErrors.RemoteCertificateChainErrors;
|
||||
status11 = unchecked((int)0x800B010B);
|
||||
// Ignore
|
||||
}
|
||||
#else
|
||||
if (is_macosx) {
|
||||
|
Reference in New Issue
Block a user