Add preliminary HTTPS handling support for Android.
The problem is that Android only exposes Java APIs for ~everything of consequence, including/especially X509 Certificate validation. Since we want Mono-based HTTPS support to use the underlying platform certificates, this requires some amount of Java-using glue. However, we don't want to pull in a ton of Java glue into System.dll (bleh!), so we'll instead place the glue into Mono.Android.dll's Android.Runtime.AndroidEnvironment.TrustEvaluateSsl(), and instead create a delegate which will invoke TrustEvaluateSsl() when needed.
Showing
想要评论请 注册 或 登录