Commit b8e8923
committed
Address review: keep extended_master_secret across a NewSessionTicket
TLSX_Parse() clears options.haveEMS for any non-request message that
arrives without the extension. Now that every NewSessionTicket goes
through TLSX_Parse(), a TLS 1.3 ticket cleared the flag, and
wolfSSL_clear() does not restore it, so a reused object negotiated
TLS 1.2 without EMS.
NewSessionTicket is post-handshake and never carries the extension, so
treat it like hello_retry_request and leave the flag alone.1 parent a7734a9 commit b8e8923
3 files changed
Lines changed: 65 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19342 | 19342 | | |
19343 | 19343 | | |
19344 | 19344 | | |
19345 | | - | |
| 19345 | + | |
| 19346 | + | |
19346 | 19347 | | |
19347 | 19348 | | |
| 19349 | + | |
| 19350 | + | |
19348 | 19351 | | |
19349 | 19352 | | |
19350 | 19353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10101 | 10101 | | |
10102 | 10102 | | |
10103 | 10103 | | |
| 10104 | + | |
| 10105 | + | |
| 10106 | + | |
| 10107 | + | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
| 10111 | + | |
| 10112 | + | |
| 10113 | + | |
| 10114 | + | |
| 10115 | + | |
| 10116 | + | |
| 10117 | + | |
| 10118 | + | |
| 10119 | + | |
| 10120 | + | |
| 10121 | + | |
| 10122 | + | |
| 10123 | + | |
| 10124 | + | |
| 10125 | + | |
| 10126 | + | |
| 10127 | + | |
| 10128 | + | |
| 10129 | + | |
| 10130 | + | |
| 10131 | + | |
| 10132 | + | |
| 10133 | + | |
| 10134 | + | |
| 10135 | + | |
| 10136 | + | |
| 10137 | + | |
| 10138 | + | |
| 10139 | + | |
| 10140 | + | |
| 10141 | + | |
| 10142 | + | |
| 10143 | + | |
| 10144 | + | |
| 10145 | + | |
| 10146 | + | |
| 10147 | + | |
| 10148 | + | |
| 10149 | + | |
| 10150 | + | |
| 10151 | + | |
| 10152 | + | |
| 10153 | + | |
| 10154 | + | |
| 10155 | + | |
| 10156 | + | |
| 10157 | + | |
| 10158 | + | |
| 10159 | + | |
| 10160 | + | |
| 10161 | + | |
| 10162 | + | |
10104 | 10163 | | |
10105 | 10164 | | |
10106 | 10165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| 226 | + | |
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| |||
0 commit comments