Home | History | Annotate | Download | only in dropbear

Lines Matching defs:line

40 #define MAX_AUTHKEYS_LINE 4200 /* max length of a line in authkeys */
160 buffer * line = NULL;
195 line = buf_new(MAX_AUTHKEYS_LINE);
200 if (buf_getline(line, authfile) == DROPBEAR_FAILURE) {
206 if (line->len < MIN_AUTHKEYS_LINE) {
207 TRACE(("checkpubkey: line too short"))
208 continue; /* line is too short for it to be a valid key */
213 if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) {
216 buf_incrpos(line, algolen);
219 if (buf_getbyte(line) != ' ') {
224 /* truncate the line at the space after the base64 data */
225 pos = line->pos;
226 for (len = 0; line->pos < line->len; len++) {
227 if (buf_getbyte(line) == ' ') break;
229 buf_setpos(line, pos);
230 buf_setlen(line, line->pos + len);
232 TRACE(("checkpubkey: line pos = %d len = %d", line->pos, line->len))
234 ret = cmp_base64_key(keyblob, keybloblen, algo, algolen, line, NULL);
239 /* We continue to the next line otherwise */
247 if (line) {
248 buf_free(line);