From 2fe59071b242c6104d765b87d99f94bbf377545d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 16 Jan 2014 15:27:46 +0100 Subject: src: Do not use deprecated functions. --- examples/authentication.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/authentication.c') diff --git a/examples/authentication.c b/examples/authentication.c index ab5e64d6..b9f70f5b 100644 --- a/examples/authentication.c +++ b/examples/authentication.c @@ -116,7 +116,7 @@ int authenticate_console(ssh_session session){ return rc; } - method = ssh_auth_list(session); + method = ssh_userauth_list(session, NULL); while (rc != SSH_AUTH_SUCCESS) { if (method & SSH_AUTH_METHOD_GSSAPI_MIC){ rc = ssh_userauth_gssapi(session); @@ -129,10 +129,10 @@ int authenticate_console(ssh_session session){ } // Try to authenticate with public key first if (method & SSH_AUTH_METHOD_PUBLICKEY) { - rc = ssh_userauth_autopubkey(session, NULL); + rc = ssh_userauth_publickey_auto(session, NULL, NULL); if (rc == SSH_AUTH_ERROR) { - error(session); - return rc; + error(session); + return rc; } else if (rc == SSH_AUTH_SUCCESS) { break; } -- cgit