From e16196124eff47924691b3e5c70c6f4d5dcca9b1 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 11 Jun 2017 02:06:26 -0400 Subject: setting: disable SSH minimum key size check when not eligible (#4507) --- models/ssh_key.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'models/ssh_key.go') 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) -- cgit v1.2.3