diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-21 10:34:21 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-23 09:06:47 +0200 |
commit | 90a6d431a75e9bcec68cd2e7c1a42465238d3faf (patch) | |
tree | 69d6c6e3c7e589a067e09e342bbf7006b92a14a5 /sample.c | |
parent | f7448eeb1ce1cfc0b95766f52af891e90fe9e8e8 (diff) | |
download | libssh-90a6d431a75e9bcec68cd2e7c1a42465238d3faf.tar.gz libssh-90a6d431a75e9bcec68cd2e7c1a42465238d3faf.tar.xz libssh-90a6d431a75e9bcec68cd2e7c1a42465238d3faf.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; |