aboutsummaryrefslogtreecommitdiffstats
path: root/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2016-01-26 23:28:03 -0800
committerKenny Root <kenny@the-b.org>2016-02-21 12:51:30 -0800
commit771687e2d5355ba0e491e410f98fde6b00fa9434 (patch)
treebde243133d03df82369c849743ff6b1ef4b08df6 /sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java
parentb0630ae774e769f8db536a6502d924ee9bafdf68 (diff)
downloadsshlib-771687e2d5355ba0e491e410f98fde6b00fa9434.tar.gz
sshlib-771687e2d5355ba0e491e410f98fde6b00fa9434.tar.bz2
sshlib-771687e2d5355ba0e491e410f98fde6b00fa9434.zip
Add extended server hostkey verification API
This allows the SSH library to query the user of the library about which key algorithms they know about for this particular host. Otherwise when the library is upgraded or the host is upgraded, it may select and previously unknown key to authenticate against the database. Note there are two APIs added here called "removeServerHostKey" and "addServerHostKey" which currently are not called, but they are there for future support for hostkeys@openssh.com support.
Diffstat (limited to 'sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java')
-rw-r--r--sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java b/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java
index ac65955..6e18b3e 100644
--- a/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java
+++ b/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java
@@ -26,6 +26,6 @@ public interface ServerHostKeyVerifier
* connection will be closed.
* @throws Exception Will be wrapped with an IOException, extended version of returning false =)
*/
- public boolean verifyServerHostKey(String hostname, int port, String serverHostKeyAlgorithm, byte[] serverHostKey)
+ boolean verifyServerHostKey(String hostname, int port, String serverHostKeyAlgorithm, byte[] serverHostKey)
throws Exception;
}