summaryrefslogtreecommitdiff
path: root/cli-authpasswd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-06-04 23:08:50 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-06-04 23:08:50 +0800
commit6e3355f4c3a5b5e9a4ef33b02478fa6811870730 (patch)
tree4671c7337586ae813f7e5e9a5d67ae95ab747f61 /cli-authpasswd.c
parentc0e5fca0bd82e13dce2eb4c64eaf85d427e33608 (diff)
downloaddropbear-6e3355f4c3a5b5e9a4ef33b02478fa6811870730.tar.gz
buf_getstring and buf_putstring now use non-unsigned char*
Diffstat (limited to 'cli-authpasswd.c')
-rw-r--r--cli-authpasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli-authpasswd.c b/cli-authpasswd.c
index e014629..3cf49a2 100644
--- a/cli-authpasswd.c
+++ b/cli-authpasswd.c
@@ -140,18 +140,18 @@ void cli_auth_password() {
buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST);
- buf_putstring(ses.writepayload, (const unsigned char *)cli_opts.username,
+ buf_putstring(ses.writepayload, cli_opts.username,
strlen(cli_opts.username));
- buf_putstring(ses.writepayload, (const unsigned char *)SSH_SERVICE_CONNECTION,
+ buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION,
SSH_SERVICE_CONNECTION_LEN);
- buf_putstring(ses.writepayload, (const unsigned char *)AUTH_METHOD_PASSWORD,
+ buf_putstring(ses.writepayload, AUTH_METHOD_PASSWORD,
AUTH_METHOD_PASSWORD_LEN);
buf_putbyte(ses.writepayload, 0); /* FALSE - so says the spec */
- buf_putstring(ses.writepayload, (const unsigned char *)password, strlen(password));
+ buf_putstring(ses.writepayload, password, strlen(password));
encrypt_packet();
m_burn(password, strlen(password));