comparison svr-auth.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 e9dfb6d15193
children 7b84c3492a95
comparison
equal deleted inserted replaced
1093:aae71c5f7d5b 1094:c45d65392c1a
87 87
88 CHECKCLEARTOWRITE(); 88 CHECKCLEARTOWRITE();
89 89
90 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_BANNER); 90 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_BANNER);
91 buf_putbufstring(ses.writepayload, banner); 91 buf_putbufstring(ses.writepayload, banner);
92 buf_putstring(ses.writepayload, "en", 2); 92 buf_putstring(ses.writepayload, (const unsigned char *)"en", 2);
93 93
94 encrypt_packet(); 94 encrypt_packet();
95 95
96 TRACE(("leave send_msg_userauth_banner")) 96 TRACE(("leave send_msg_userauth_banner"))
97 } 97 }
331 331
332 /* put a list of allowed types */ 332 /* put a list of allowed types */
333 typebuf = buf_new(30); /* long enough for PUBKEY and PASSWORD */ 333 typebuf = buf_new(30); /* long enough for PUBKEY and PASSWORD */
334 334
335 if (ses.authstate.authtypes & AUTH_TYPE_PUBKEY) { 335 if (ses.authstate.authtypes & AUTH_TYPE_PUBKEY) {
336 buf_putbytes(typebuf, AUTH_METHOD_PUBKEY, AUTH_METHOD_PUBKEY_LEN); 336 buf_putbytes(typebuf, (const unsigned char *)AUTH_METHOD_PUBKEY, AUTH_METHOD_PUBKEY_LEN);
337 if (ses.authstate.authtypes & AUTH_TYPE_PASSWORD) { 337 if (ses.authstate.authtypes & AUTH_TYPE_PASSWORD) {
338 buf_putbyte(typebuf, ','); 338 buf_putbyte(typebuf, ',');
339 } 339 }
340 } 340 }
341 341
342 if (ses.authstate.authtypes & AUTH_TYPE_PASSWORD) { 342 if (ses.authstate.authtypes & AUTH_TYPE_PASSWORD) {
343 buf_putbytes(typebuf, AUTH_METHOD_PASSWORD, AUTH_METHOD_PASSWORD_LEN); 343 buf_putbytes(typebuf, (const unsigned char *)AUTH_METHOD_PASSWORD, AUTH_METHOD_PASSWORD_LEN);
344 } 344 }
345 345
346 buf_putbufstring(ses.writepayload, typebuf); 346 buf_putbufstring(ses.writepayload, typebuf);
347 347
348 TRACE(("auth fail: methods %d, '%.*s'", ses.authstate.authtypes, 348 TRACE(("auth fail: methods %d, '%.*s'", ses.authstate.authtypes,