diff options
author | Unknwon <u@gogs.io> | 2017-06-11 02:06:26 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-11 02:06:26 -0400 |
commit | e16196124eff47924691b3e5c70c6f4d5dcca9b1 (patch) | |
tree | dedb9cf4e4a8c3a68b858a64c0bcb829b9260672 /models/ssh_key.go | |
parent | ab2197bc75fc85089a4ff7f8d2ee46caf04507a4 (diff) |
setting: disable SSH minimum key size check when not eligible (#4507)
Diffstat (limited to 'models/ssh_key.go')
-rw-r--r-- | models/ssh_key.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go index 814f0db0..798c58f2 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -194,11 +194,6 @@ func writeTmpKeyFile(content string) (string, error) { // SSHKeyGenParsePublicKey extracts key type and length using ssh-keygen. func SSHKeyGenParsePublicKey(key string) (string, int, error) { - // The ssh-keygen in Windows does not print key type, so no need go further. - if setting.IsWindows { - return "", 0, nil - } - tmpName, err := writeTmpKeyFile(key) if err != nil { return "", 0, fmt.Errorf("writeTmpKeyFile: %v", err) |