Commit 593f13d
committed
Deprecate tlsconfig.SystemCertPool
The wrapper originally existed for historical compatibility reasons that
no longer apply:
- 55aadc3 removed the pre-Go-1.7 fallback implementation, leaving
the wrapper mainly as a shim around x509.SystemCertPool.
- 3723764 kept a Windows-specific exception because
x509.SystemCertPool on Windows was not yet reliable at the time.
- f652133 and 21876c5 preserved that behavior while the package
continued to support older Go versions and older Windows handling.
With current Go versions, x509.SystemCertPool is the correct API on all
supported platforms, including Windows, and the old special-case is no
longer needed. Keeping a package-local wrapper only adds indirection and
retains stale historical behavior and comments.
This change keeps the existing behavior of using the system trust store
as the base when building non-exclusive root pools; it only deprecates
the local wrapper in favor of the standard library entrypoint.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>1 parent dad033c commit 593f13d
3 files changed
Lines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
16 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
0 commit comments