Commit 279df7a
authored
http: fix SYSLIB0057 warning for X509Certificate2Collection.Import (git-ecosystem#2326)
Use `ImportFromPemFile` on modern .NET to resolve the `SYSLIB0057`
deprecation warning, while keeping the original `Import` call on .NET
Framework where the new API is not available.
We know this is always a PEM file since this is a Git defined option,
and it is passed to libcurl via `CURLINFO_CAINFO` which expects PEM
format.1 file changed
Lines changed: 4 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
0 commit comments