comparison cli-authpasswd.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 bde853a9e680
children aaf576b27a10
comparison
equal deleted inserted replaced
1093:aae71c5f7d5b 1094:c45d65392c1a
138 password = getpass_or_cancel(prompt); 138 password = getpass_or_cancel(prompt);
139 } 139 }
140 140
141 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST); 141 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST);
142 142
143 buf_putstring(ses.writepayload, cli_opts.username, 143 buf_putstring(ses.writepayload, (const unsigned char *)cli_opts.username,
144 strlen(cli_opts.username)); 144 strlen(cli_opts.username));
145 145
146 buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION, 146 buf_putstring(ses.writepayload, (const unsigned char *)SSH_SERVICE_CONNECTION,
147 SSH_SERVICE_CONNECTION_LEN); 147 SSH_SERVICE_CONNECTION_LEN);
148 148
149 buf_putstring(ses.writepayload, AUTH_METHOD_PASSWORD, 149 buf_putstring(ses.writepayload, (const unsigned char *)AUTH_METHOD_PASSWORD,
150 AUTH_METHOD_PASSWORD_LEN); 150 AUTH_METHOD_PASSWORD_LEN);
151 151
152 buf_putbyte(ses.writepayload, 0); /* FALSE - so says the spec */ 152 buf_putbyte(ses.writepayload, 0); /* FALSE - so says the spec */
153 153
154 buf_putstring(ses.writepayload, password, strlen(password)); 154 buf_putstring(ses.writepayload, (const unsigned char *)password, strlen(password));
155 155
156 encrypt_packet(); 156 encrypt_packet();
157 m_burn(password, strlen(password)); 157 m_burn(password, strlen(password));
158 158
159 TRACE(("leave cli_auth_password")) 159 TRACE(("leave cli_auth_password"))