aboutsummaryrefslogtreecommitdiff
path: root/models/ssh_key.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-06-11 02:06:26 -0400
committerUnknwon <u@gogs.io>2017-06-11 02:06:26 -0400
commite16196124eff47924691b3e5c70c6f4d5dcca9b1 (patch)
treededb9cf4e4a8c3a68b858a64c0bcb829b9260672 /models/ssh_key.go
parentab2197bc75fc85089a4ff7f8d2ee46caf04507a4 (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.go5
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)