forked from TrueCloudLab/rclone
vendor patch: allow 2048 bit DSA keys DO NOT MERGE
This commit is contained in:
parent
e4f1e19127
commit
c4700f4bf1
1 changed files with 1 additions and 1 deletions
2
vendor/golang.org/x/crypto/ssh/keys.go
generated
vendored
2
vendor/golang.org/x/crypto/ssh/keys.go
generated
vendored
|
@ -412,7 +412,7 @@ func checkDSAParams(param *dsa.Parameters) error {
|
|||
// SSH specifies FIPS 186-2, which only provided a single size
|
||||
// (1024 bits) DSA key. FIPS 186-3 allows for larger key
|
||||
// sizes, which would confuse SSH.
|
||||
if l := param.P.BitLen(); l != 1024 {
|
||||
if l := param.P.BitLen(); l != 1024 && l != 2048 {
|
||||
return fmt.Errorf("ssh: unsupported DSA key size %d", l)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue