Mercurial > dropbear
comparison svr-authpubkey.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 | 703c7cdd2577 |
children | 83025b7063ec |
comparison
equal
deleted
inserted
replaced
1093:aae71c5f7d5b | 1094:c45d65392c1a |
---|---|
258 } | 258 } |
259 | 259 |
260 /* check the key type - will fail if there are options */ | 260 /* check the key type - will fail if there are options */ |
261 TRACE(("a line!")) | 261 TRACE(("a line!")) |
262 | 262 |
263 if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) { | 263 if (strncmp((const char *) buf_getptr(line, algolen), algo, algolen) != 0) { |
264 int is_comment = 0; | 264 int is_comment = 0; |
265 char *options_start = NULL; | 265 unsigned char *options_start = NULL; |
266 int options_len = 0; | 266 int options_len = 0; |
267 int escape, quoted; | 267 int escape, quoted; |
268 | 268 |
269 /* skip over any comments or leading whitespace */ | 269 /* skip over any comments or leading whitespace */ |
270 while (line->pos < line->len) { | 270 while (line->pos < line->len) { |
306 | 306 |
307 /* compare the algorithm. +3 so we have enough bytes to read a space and some base64 characters too. */ | 307 /* compare the algorithm. +3 so we have enough bytes to read a space and some base64 characters too. */ |
308 if (line->pos + algolen+3 > line->len) { | 308 if (line->pos + algolen+3 > line->len) { |
309 continue; | 309 continue; |
310 } | 310 } |
311 if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) { | 311 if (strncmp((const char *) buf_getptr(line, algolen), algo, algolen) != 0) { |
312 continue; | 312 continue; |
313 } | 313 } |
314 } | 314 } |
315 buf_incrpos(line, algolen); | 315 buf_incrpos(line, algolen); |
316 | 316 |