Commit d8eca31
committed
gh-155327: Guard SSLSocket chain methods after TLS teardown
get_verified_chain() and get_unverified_chain() accessed self._sslobj without
the guard used by the other query methods, raising AttributeError after
unwrap(). Return an empty list instead.1 parent 8b048eb commit d8eca31
3 files changed
Lines changed: 28 additions & 0 deletions
File tree
- Lib
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1186 | 1189 | | |
1187 | 1190 | | |
1188 | 1191 | | |
| |||
1192 | 1195 | | |
1193 | 1196 | | |
1194 | 1197 | | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
1195 | 1201 | | |
1196 | 1202 | | |
1197 | 1203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5435 | 5435 | | |
5436 | 5436 | | |
5437 | 5437 | | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
| 5451 | + | |
| 5452 | + | |
| 5453 | + | |
| 5454 | + | |
| 5455 | + | |
5438 | 5456 | | |
5439 | 5457 | | |
5440 | 5458 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments