Commit b641d5d
committed
Client: check first_packet_follows guess in DoKexDhReply
When a server sends first_kex_packet_follows=TRUE with an incorrect KEX
algorithm guess, the client now silently discards the server's speculative
KEXDH_REPLY message by checking ignoreNextKexMsg at the top of DoKexDhReply,
matching the existing server-side handling in DoKexDhInit. Add regression
test covering the client-side skip path.
Affected functions: DoKexDhReply.
Issue: F-28631 parent 7241f4e commit b641d5d
3 files changed
Lines changed: 35 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5823 | 5823 | | |
5824 | 5824 | | |
5825 | 5825 | | |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
| 5829 | + | |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
| 5834 | + | |
| 5835 | + | |
| 5836 | + | |
5826 | 5837 | | |
5827 | 5838 | | |
5828 | 5839 | | |
| |||
17901 | 17912 | | |
17902 | 17913 | | |
17903 | 17914 | | |
| 17915 | + | |
| 17916 | + | |
| 17917 | + | |
| 17918 | + | |
| 17919 | + | |
17904 | 17920 | | |
17905 | 17921 | | |
17906 | 17922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2072 | 2072 | | |
2073 | 2073 | | |
2074 | 2074 | | |
2075 | | - | |
| 2075 | + | |
2076 | 2076 | | |
2077 | | - | |
| 2077 | + | |
2078 | 2078 | | |
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
2082 | 2082 | | |
2083 | 2083 | | |
2084 | 2084 | | |
2085 | | - | |
| 2085 | + | |
2086 | 2086 | | |
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
2090 | 2090 | | |
2091 | 2091 | | |
2092 | 2092 | | |
2093 | | - | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
2094 | 2097 | | |
2095 | | - | |
| 2098 | + | |
2096 | 2099 | | |
2097 | 2100 | | |
2098 | 2101 | | |
| |||
2101 | 2104 | | |
2102 | 2105 | | |
2103 | 2106 | | |
2104 | | - | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
2105 | 2111 | | |
2106 | 2112 | | |
2107 | 2113 | | |
2108 | 2114 | | |
2109 | 2115 | | |
2110 | 2116 | | |
2111 | 2117 | | |
2112 | | - | |
| 2118 | + | |
| 2119 | + | |
2113 | 2120 | | |
2114 | 2121 | | |
2115 | | - | |
| 2122 | + | |
2116 | 2123 | | |
| 2124 | + | |
| 2125 | + | |
2117 | 2126 | | |
2118 | 2127 | | |
2119 | 2128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
| 1340 | + | |
| 1341 | + | |
1340 | 1342 | | |
1341 | 1343 | | |
1342 | 1344 | | |
| |||
0 commit comments