Commit 0d596e2
authored
Fix setting NO_SESSION_ID
With a TLS 1.3 connection, a session ID will only appears as part of a post-handshake session ticket. However, with OpenSSL 1.1.1 or newer when using $OPENSSL s_client as it is called in determine_optimal_proto() (i.e., with "< /dev/null"), a post-handshake session ticket will usually not be received, even if the server supports it. With versions of LibreSSL that support TLS 1.3, a post-handshake session ticket is never displayed (even without "< /dev/null"). This can result in NO_SESSION_ID incorrectly being set to true.
This commit fixes the issue by setting NO_SESSION_ID to true by default, and then setting it to false if a session ID is returned by any connection to the server.1 parent a47bc20 commit 0d596e2
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
7183 | 7183 | | |
7184 | 7184 | | |
7185 | 7185 | | |
| 7186 | + | |
7186 | 7187 | | |
7187 | 7188 | | |
7188 | 7189 | | |
7189 | | - | |
7190 | | - | |
7191 | | - | |
| 7190 | + | |
| 7191 | + | |
| 7192 | + | |
| 7193 | + | |
| 7194 | + | |
| 7195 | + | |
| 7196 | + | |
| 7197 | + | |
7192 | 7198 | | |
7193 | | - | |
7194 | 7199 | | |
7195 | 7200 | | |
7196 | 7201 | | |
| |||
12496 | 12501 | | |
12497 | 12502 | | |
12498 | 12503 | | |
| 12504 | + | |
12499 | 12505 | | |
12500 | 12506 | | |
12501 | 12507 | | |
| |||
18389 | 18395 | | |
18390 | 18396 | | |
18391 | 18397 | | |
18392 | | - | |
| 18398 | + | |
18393 | 18399 | | |
18394 | 18400 | | |
18395 | 18401 | | |
| |||
20161 | 20167 | | |
20162 | 20168 | | |
20163 | 20169 | | |
20164 | | - | |
| 20170 | + | |
20165 | 20171 | | |
20166 | 20172 | | |
20167 | 20173 | | |
| |||
0 commit comments