Lines Matching refs:line
217 buffer * line = NULL; in checkhostkey() local
227 line = buf_new(MAX_KNOWNHOSTS_LINE); in checkhostkey()
232 if (buf_getline(line, hostsfile) == DROPBEAR_FAILURE) { in checkhostkey()
241 if (line->len < (hostlen+30) ) { in checkhostkey()
247 if (strncmp(cli_opts.remotehost, buf_getptr(line, hostlen), in checkhostkey()
253 buf_incrpos(line, hostlen); in checkhostkey()
254 if (buf_getbyte(line) != ' ') { in checkhostkey()
260 if (strncmp(buf_getptr(line, algolen), algoname, algolen) != 0) { in checkhostkey()
265 buf_incrpos(line, algolen); in checkhostkey()
266 if (buf_getbyte(line) != ' ') { in checkhostkey()
273 line, &fingerprint); in checkhostkey()
305 buf_setpos(line, 0); in checkhostkey()
306 buf_setlen(line, 0); in checkhostkey()
307 buf_putbytes(line, ses.remotehost, hostlen); in checkhostkey()
308 buf_putbyte(line, ' '); in checkhostkey()
309 buf_putbytes(line, algoname, algolen); in checkhostkey()
310 buf_putbyte(line, ' '); in checkhostkey()
311 len = line->size - line->pos; in checkhostkey()
315 base64_encode(keyblob, keybloblen, buf_getwriteptr(line, len), &len); in checkhostkey()
316 buf_incrwritepos(line, len); in checkhostkey()
317 buf_putbyte(line, '\n'); in checkhostkey()
318 buf_setpos(line, 0); in checkhostkey()
319 fwrite(buf_getptr(line, line->len), line->len, 1, hostsfile); in checkhostkey()
327 if (line != NULL) { in checkhostkey()
328 buf_free(line); in checkhostkey()