Skip to content

Commit

Permalink
Update isValidKeyAlgorithm impl
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Dec 18, 2024
1 parent 765280e commit 31a21a4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cli/packages/cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ var algoToFileName = map[infisicalSdkUtil.CertKeyAlgorithm]string{
}

func isValidKeyAlgorithm(algo infisicalSdkUtil.CertKeyAlgorithm) bool {
switch algo {
case infisicalSdkUtil.RSA2048, infisicalSdkUtil.RSA4096, infisicalSdkUtil.ECDSAP256, infisicalSdkUtil.ECDSAP384:
return true
default:
return false
}
_, exists := algoToFileName[algo]
return exists
}

func isValidCertType(certType infisicalSdkUtil.SshCertType) bool {
Expand Down

0 comments on commit 31a21a4

Please sign in to comment.