comparison cli-authpasswd.c @ 1122:aaf576b27a10

Merge pull request #13 from gazoo74/fix-warnings Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents c45d65392c1a
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1087:1e486f368ec3 1122:aaf576b27a10
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, 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, 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, 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, password, strlen(password));