From 90a6d431a75e9bcec68cd2e7c1a42465238d3faf Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 21 Jul 2009 10:34:21 +0200 Subject: Make the ssh_userauth_kbdint functions to get the prompts const. They shouldn't be modified or free'd by a user. --- sample.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sample.c') 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; -- cgit