comparison cli-authinteract.c @ 1118:506e769ed6d1

Turn name and instruction local variables into char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sun, 03 May 2015 00:23:55 +0200
parents 5806c644469a
children aaf576b27a10
comparison
equal deleted inserted replaced
1117:6b6ed65e99b1 1118:506e769ed6d1
64 return response; 64 return response;
65 } 65 }
66 66
67 void recv_msg_userauth_info_request() { 67 void recv_msg_userauth_info_request() {
68 68
69 unsigned char *name = NULL; 69 char *name = NULL;
70 unsigned char *instruction = NULL; 70 char *instruction = NULL;
71 unsigned int num_prompts = 0; 71 unsigned int num_prompts = 0;
72 unsigned int i; 72 unsigned int i;
73 73
74 char *prompt = NULL; 74 char *prompt = NULL;
75 unsigned int echo = 0; 75 unsigned int echo = 0;
82 fprintf(stderr, "Login for %s@%s\n", cli_opts.username, 82 fprintf(stderr, "Login for %s@%s\n", cli_opts.username,
83 cli_opts.remotehost); 83 cli_opts.remotehost);
84 } 84 }
85 cli_ses.interact_request_received = 1; 85 cli_ses.interact_request_received = 1;
86 86
87 name = buf_getstring(ses.payload, NULL); 87 name = (char *)buf_getstring(ses.payload, NULL);
88 instruction = buf_getstring(ses.payload, NULL); 88 instruction = (char *)buf_getstring(ses.payload, NULL);
89 89
90 /* language tag */ 90 /* language tag */
91 buf_eatstring(ses.payload); 91 buf_eatstring(ses.payload);
92 92
93 num_prompts = buf_getint(ses.payload); 93 num_prompts = buf_getint(ses.payload);