mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* Add server-side Server-Name-Indication (SNI) support (both AppleTls and BTLS). * Support the new `SslServerAuthenticationOptions.ServerCertificateSelectionCallback`. * Server certificate selection is now compatible with CoreFx behavior; first checking the new `ServerCertSelectionDelegate` then `LocalCertSelectionCallback` and finally using an explicitly provided certificate. * Misc exception checks and fixes to make behavior consistent with CoreFx; any exception thrown by reading / writing the underlying stream will now be propagated verbatim (and not wrapped in an `AuthenticationException`); exceptions thrown by the handshake / TLS stack itself will still be wrapped. * Added `System.Net.Security` xUnit tests from CoreFx. * Misc test cleanups; moved certificate test files from `System.Net.Http` into `System` and embed them in the test assembly as resources, adjusting `test-helpers/Configuration.Certificates.cs` accordingly.