Repository navigation
Commit 3e87c63
gh-159387: Fix TLS 1.0–1.2 availability detection with OpenSSL 4.0 (GH-159388)
Fix TLS 1.0–1.2 availability detection with OpenSSL 4.0
OpenSSL 4.0 removed the version-specific methods but still supports
TLS 1.0–1.2 through TLS_method(). Stop reporting these versions as
unavailable, and expose legacy PROTOCOL_TLSv1* constants only when their corresponding methods exist.
(cherry picked from commit e7acd6a)
Co-authored-by: Pengyu Lee <lipengyu@kylinos.cn>
1 parent 85736ac commit 3e87c63
3 files changed
Lines changed: 9 additions & 6 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4072 | 4072 | | |
4073 | 4073 | | |
4074 | 4074 | | |
| 4075 | + | |
| 4076 | + | |
4075 | 4077 | | |
4076 | 4078 | | |
4077 | 4079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
| |||
7123 | 7122 | | |
7124 | 7123 | | |
7125 | 7124 | | |
7126 | | - | |
| 7125 | + | |
7127 | 7126 | | |
7128 | 7127 | | |
7129 | | - | |
| 7128 | + | |
7130 | 7129 | | |
7131 | 7130 | | |
7132 | | - | |
| 7131 | + | |
7133 | 7132 | | |
7134 | 7133 | | |
7135 | 7134 | | |
| |||
0 commit comments