We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25ab3c commit 4e7caebCopy full SHA for 4e7caeb
tmate-ssh-client.c
@@ -282,8 +282,13 @@ static void on_ssh_client_event(struct tmate_ssh_client *client)
282
}
283
284
case SSH_AUTH_SERVER:
285
+#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 9, 0)
286
+ if (ssh_get_server_publickey(session, &pubkey) < 0)
287
+ tmate_fatal("ssh_get_server_publickey");
288
+#else
289
if (ssh_get_publickey(session, &pubkey) < 0)
290
tmate_fatal("ssh_get_publickey");
291
+#endif
292
293
if (ssh_get_publickey_hash(pubkey, SSH_PUBLICKEY_HASH_SHA256,
294
&hash, &hash_len) < 0) {
0 commit comments