Repository navigation
Commit fdf88ed
Clarify TLS 1.3 behavior of the SSLContext PSK callbacks (GH-160159)
Under TLS 1.3 a PSK is only offered and may be declined, and both sides
fall back to certificate authentication when one is available, so
CERT_NONE leaves the server unauthenticated and a zero length PSK does
not reject the connection. Drop CERT_NONE from the example and the PSK
tests.
A callback that raises is treated like one returning a zero length PSK,
so under TLS 1.3 it also falls back to certificate authentication. A
server with a certificate loaded declines even a matching PSK with
OpenSSL's default TLS 1.3 cipher suite order, which selects a SHA-384
suite. Mention checking session_reused as the client side alternative
to not using CERT_NONE.
(cherry picked from commit 9b9657c)
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
1 parent 9a6143b commit fdf88ed
2 files changed
Lines changed: 29 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2221 | 2221 | | |
2222 | 2222 | | |
2223 | 2223 | | |
2224 | | - | |
2225 | | - | |
| 2224 | + | |
| 2225 | + | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | 2228 | | |
| |||
2231 | 2231 | | |
2232 | 2232 | | |
2233 | 2233 | | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
2234 | 2246 | | |
2235 | 2247 | | |
2236 | 2248 | | |
2237 | 2249 | | |
2238 | 2250 | | |
2239 | | - | |
2240 | 2251 | | |
2241 | 2252 | | |
2242 | 2253 | | |
| |||
2268 | 2279 | | |
2269 | 2280 | | |
2270 | 2281 | | |
2271 | | - | |
| 2282 | + | |
2272 | 2283 | | |
2273 | 2284 | | |
2274 | 2285 | | |
| |||
2277 | 2288 | | |
2278 | 2289 | | |
2279 | 2290 | | |
2280 | | - | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2281 | 2304 | | |
2282 | 2305 | | |
2283 | 2306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5198 | 5198 | | |
5199 | 5199 | | |
5200 | 5200 | | |
5201 | | - | |
5202 | 5201 | | |
5203 | 5202 | | |
5204 | 5203 | | |
| |||
5278 | 5277 | | |
5279 | 5278 | | |
5280 | 5279 | | |
5281 | | - | |
5282 | 5280 | | |
5283 | 5281 | | |
5284 | 5282 | | |
| |||
5292 | 5290 | | |
5293 | 5291 | | |
5294 | 5292 | | |
| 5293 | + | |
5295 | 5294 | | |
5296 | 5295 | | |
5297 | 5296 | | |
| |||
0 commit comments