浏览代码

Allow ssh-keygen on Windows to detect ssh key type (#14413)

tags/v1.15.0-dev
Chester Liu 3 年前
父节点
当前提交
072d550dda
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0
    5
      models/ssh_key.go

+ 0
- 5
models/ssh_key.go 查看文件

@@ -223,11 +223,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)

正在加载...
取消
保存