Commit 28b0c70
Restore ServicePointManager SSL callback bridge for .NET 10 (#1275)
Replace #if !NET10_0_OR_GREATER guards with #pragma warning disable SYSLIB0014
so that ServicePointManager.ServerCertificateValidationCallback is read and
applied to SocketsHttpHandler.SslOptions in all target frameworks, including
.NET 10. Without this bridge, apps relying on that callback to handle
self-signed or name-mismatched certificates would fail SSL handshake after
migrating to .NET 10.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7700101 commit 28b0c70
2 files changed
Lines changed: 6 additions & 8 deletions
File tree
- dotnet/src/dotnetframework
- GxClasses/Domain
- GxMail/Exchange
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 212 | + | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
281 | 279 | | |
282 | 280 | | |
283 | 281 | | |
284 | | - | |
| 282 | + | |
285 | 283 | | |
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
292 | | - | |
| 290 | + | |
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments