Skip to content

Commit

Permalink
Not throwing IllegalArgumentException when key type is rsa-sha2-256 o…
Browse files Browse the repository at this point in the history
…r rsa-sha2-512.
  • Loading branch information
iiordanov authored and kruton committed Jul 23, 2019
1 parent 8acf632 commit e6a49c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sshlib/src/main/java/com/trilead/ssh2/KnownHosts.java
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,12 @@ else if ("ssh-rsa".equals(keyType))
else if ("ssh-dss".equals(keyType))
{
}
else if ("rsa-sha2-256".equals(keyType))
{
}
else if ("rsa-sha2-512".equals(keyType))
{
}
else
throw new IllegalArgumentException("Unknown key type " + keyType);

Expand Down

0 comments on commit e6a49c5

Please sign in to comment.