summaryrefslogtreecommitdiffstats
path: root/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample.c b/sample.c
index 27111a8..94b6717 100644
--- a/sample.c
+++ b/sample.c
@@ -454,7 +454,7 @@ int main(int argc, char **argv){
printf("\n");
/* no ? you should :) */
- auth=ssh_userauth_autopubkey(session);
+ auth=ssh_userauth_autopubkey(session, NULL);
if(auth==SSH_AUTH_ERROR){
fprintf(stderr,"Authenticating with pubkey: %s\n",ssh_get_error(session));
ssh_finalize();