Commit 72a28a2
committed
fix(negotiation): exclude SHA-1 MACs from Preferred::DEFAULT
HMAC_SHA1 and HMAC_SHA1_ETM were included in the default MAC negotiation
list (HMAC_ORDER). SHA-1 based MACs are deprecated per RFC 8308 and removed
from OpenSSH 8.7+ defaults.
Introduce SAFE_HMAC_ORDER (SHA-512 and SHA-256 variants only) and use it
in Preferred::DEFAULT and Preferred::COMPRESSED. HMAC_ORDER is kept as-is
for users who need to interoperate with legacy servers that support only
SHA-1 MACs — set it explicitly via Preferred { mac: Cow::Borrowed(HMAC_ORDER) }.
The KEX default (SAFE_KEX_ORDER) already excludes SHA-1 correctly; this
aligns MAC defaults to the same standard.1 parent a9057ed commit 72a28a2
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
134 | 142 | | |
135 | 143 | | |
136 | 144 | | |
| |||
171 | 179 | | |
172 | 180 | | |
173 | 181 | | |
174 | | - | |
| 182 | + | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
181 | 189 | | |
182 | | - | |
| 190 | + | |
183 | 191 | | |
184 | 192 | | |
185 | 193 | | |
| |||
0 commit comments