aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-21 10:34:21 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-23 09:06:47 +0200
commit90a6d431a75e9bcec68cd2e7c1a42465238d3faf (patch)
tree69d6c6e3c7e589a067e09e342bbf7006b92a14a5 /sample.c
parentf7448eeb1ce1cfc0b95766f52af891e90fe9e8e8 (diff)
downloadlibssh-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample.c b/sample.c
index 74e09974..85ea7d19 100644
--- a/sample.c
+++ b/sample.c
@@ -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;