client ssh CHANGE allow private data in SSH authentication callbacks
Add also getters to get the provided private data for freeing.
diff --git a/tests/test_server_thread.c b/tests/test_server_thread.c
index b6f09cf..15284fa 100644
--- a/tests/test_server_thread.c
+++ b/tests/test_server_thread.c
@@ -223,10 +223,11 @@
}
static int
-ssh_hostkey_check_clb(const char *hostname, ssh_session session)
+ssh_hostkey_check_clb(const char *hostname, ssh_session session, void *priv)
{
(void)hostname;
(void)session;
+ (void)priv;
return 0;
}
@@ -243,7 +244,7 @@
nc_assert(!strncmp(buf, "ssh_ready", 9));
/* skip the knownhost check */
- nc_client_ssh_set_auth_hostkey_check_clb(ssh_hostkey_check_clb);
+ nc_client_ssh_set_auth_hostkey_check_clb(ssh_hostkey_check_clb, NULL);
ret = nc_client_ssh_set_username("test");
nc_assert(!ret);