summaryrefslogtreecommitdiffhomepage
path: root/cli-authinteract.c
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@gmail.com>2015-05-02 15:59:06 +0200
committerGaël PORTAY <gael.portay@gmail.com>2015-05-05 20:39:13 +0200
commit224b16b2470ab764e854eb4a7cdd568353655afc (patch)
treeeba9e3ed33fd1c66c6286abaf3f3e383f2eb8504 /cli-authinteract.c
parentef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff)
Fix pointer differ in signess warnings [-Werror=pointer-sign]
Diffstat (limited to 'cli-authinteract.c')
-rw-r--r--cli-authinteract.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli-authinteract.c b/cli-authinteract.c
index a06c9ca..192a54e 100644
--- a/cli-authinteract.c
+++ b/cli-authinteract.c
@@ -149,22 +149,22 @@ void cli_auth_interactive() {
buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST);
/* username */
- buf_putstring(ses.writepayload, cli_opts.username,
+ buf_putstring(ses.writepayload, (const unsigned char *)cli_opts.username,
strlen(cli_opts.username));
/* service name */
- buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION,
+ buf_putstring(ses.writepayload, (const unsigned char *)SSH_SERVICE_CONNECTION,
SSH_SERVICE_CONNECTION_LEN);
/* method */
- buf_putstring(ses.writepayload, AUTH_METHOD_INTERACT,
+ buf_putstring(ses.writepayload, (const unsigned char *)AUTH_METHOD_INTERACT,
AUTH_METHOD_INTERACT_LEN);
/* empty language tag */
- buf_putstring(ses.writepayload, "", 0);
+ buf_putstring(ses.writepayload, (const unsigned char *)"", 0);
/* empty submethods */
- buf_putstring(ses.writepayload, "", 0);
+ buf_putstring(ses.writepayload, (const unsigned char *)"", 0);
encrypt_packet();
cli_ses.interact_request_received = 0;