diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-21 10:34:21 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-21 10:34:21 +0200 |
commit | 41a8fb5810759118d93bee30a254ecf4863437b5 (patch) | |
tree | 81c960097719c1d81d5b9dc330908e4c9aa05962 /sample.c | |
parent | 8843d8b68d180dbc3b0edbfb47ded3fadbe86988 (diff) | |
download | libssh-41a8fb5810759118d93bee30a254ecf4863437b5.tar.gz libssh-41a8fb5810759118d93bee30a254ecf4863437b5.tar.xz libssh-41a8fb5810759118d93bee30a254ecf4863437b5.zip |
Make the ssh_userauth_kbdint functions to get the prompts const.
They shouldn't be modified or free'd by a user.
Diffstat (limited to 'sample.c')
-rw-r--r-- | sample.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -367,7 +367,8 @@ void do_sftp(SSH_SESSION *session){ static int auth_kbdint(SSH_SESSION *session){ int err=ssh_userauth_kbdint(session,NULL,NULL); - char *name,*instruction,*prompt,*ptr; + const char *name, *instruction, *prompt; + char *ptr; char buffer[128]; int i,n; char echo; |