Mercurial > dropbear
comparison cli-authinteract.c @ 1094:c45d65392c1a
Fix pointer differ in signess warnings [-Werror=pointer-sign]
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 15:59:06 +0200 |
parents | 8cd04e707171 |
children | 5806c644469a |
comparison
equal
deleted
inserted
replaced
1093:aae71c5f7d5b | 1094:c45d65392c1a |
---|---|
147 CHECKCLEARTOWRITE(); | 147 CHECKCLEARTOWRITE(); |
148 | 148 |
149 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST); | 149 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST); |
150 | 150 |
151 /* username */ | 151 /* username */ |
152 buf_putstring(ses.writepayload, cli_opts.username, | 152 buf_putstring(ses.writepayload, (const unsigned char *)cli_opts.username, |
153 strlen(cli_opts.username)); | 153 strlen(cli_opts.username)); |
154 | 154 |
155 /* service name */ | 155 /* service name */ |
156 buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION, | 156 buf_putstring(ses.writepayload, (const unsigned char *)SSH_SERVICE_CONNECTION, |
157 SSH_SERVICE_CONNECTION_LEN); | 157 SSH_SERVICE_CONNECTION_LEN); |
158 | 158 |
159 /* method */ | 159 /* method */ |
160 buf_putstring(ses.writepayload, AUTH_METHOD_INTERACT, | 160 buf_putstring(ses.writepayload, (const unsigned char *)AUTH_METHOD_INTERACT, |
161 AUTH_METHOD_INTERACT_LEN); | 161 AUTH_METHOD_INTERACT_LEN); |
162 | 162 |
163 /* empty language tag */ | 163 /* empty language tag */ |
164 buf_putstring(ses.writepayload, "", 0); | 164 buf_putstring(ses.writepayload, (const unsigned char *)"", 0); |
165 | 165 |
166 /* empty submethods */ | 166 /* empty submethods */ |
167 buf_putstring(ses.writepayload, "", 0); | 167 buf_putstring(ses.writepayload, (const unsigned char *)"", 0); |
168 | 168 |
169 encrypt_packet(); | 169 encrypt_packet(); |
170 cli_ses.interact_request_received = 0; | 170 cli_ses.interact_request_received = 0; |
171 | 171 |
172 TRACE(("leave cli_auth_interactive")) | 172 TRACE(("leave cli_auth_interactive")) |