Make the ssh_userauth_kbdint functions to get the prompts const.

They shouldn't be modified or free'd by a user.
This commit is contained in:
Andreas Schneider
2009-07-21 10:34:21 +02:00
parent f7448eeb1c
commit 90a6d431a7
3 changed files with 8 additions and 7 deletions

View File

@@ -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;