Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • Geofferey/dropbear
1 result
Show changes
Commits on Source (2)
Loading
@@ -196,7 +196,7 @@ static int checkpubkey_line(buffer* line, int line_num, char* filename,
Loading
@@ -196,7 +196,7 @@ static int checkpubkey_line(buffer* line, int line_num, char* filename,
int ret = DROPBEAR_FAILURE; int ret = DROPBEAR_FAILURE;
   
if (line->len < MIN_AUTHKEYS_LINE || line->len > MAX_AUTHKEYS_LINE) { if (line->len < MIN_AUTHKEYS_LINE || line->len > MAX_AUTHKEYS_LINE) {
TRACE(("checkpubkey: bad line length %d", line->len)) TRACE(("checkpubkey_line: bad line length %d", line->len))
return DROPBEAR_FAILURE; return DROPBEAR_FAILURE;
} }
   
Loading
@@ -261,7 +261,7 @@ static int checkpubkey_line(buffer* line, int line_num, char* filename,
Loading
@@ -261,7 +261,7 @@ static int checkpubkey_line(buffer* line, int line_num, char* filename,
/* check for space (' ') character */ /* check for space (' ') character */
if (buf_getbyte(line) != ' ') { if (buf_getbyte(line) != ' ') {
TRACE(("checkpubkey: space character expected, isn't there")) TRACE(("checkpubkey_line: space character expected, isn't there"))
goto out; goto out;
} }
   
Loading
@@ -273,7 +273,7 @@ static int checkpubkey_line(buffer* line, int line_num, char* filename,
Loading
@@ -273,7 +273,7 @@ static int checkpubkey_line(buffer* line, int line_num, char* filename,
buf_setpos(line, pos); buf_setpos(line, pos);
buf_setlen(line, line->pos + len); buf_setlen(line, line->pos + len);
   
TRACE(("checkpubkey: line pos = %d len = %d", line->pos, line->len)) TRACE(("checkpubkey_line: line pos = %d len = %d", line->pos, line->len))
   
ret = cmp_base64_key(keyblob, keybloblen, (const unsigned char *) algo, algolen, line, NULL); ret = cmp_base64_key(keyblob, keybloblen, (const unsigned char *) algo, algolen, line, NULL);
   
Loading
@@ -361,8 +361,8 @@ static int checkpubkey(char* algo, unsigned int algolen,
Loading
@@ -361,8 +361,8 @@ static int checkpubkey(char* algo, unsigned int algolen,
} }
line_num++; line_num++;
   
if (checkpubkey_line(line, line_num, filename, ret = checkpubkey_line(line, line_num, filename, algo, algolen, keyblob, keybloblen);
algo, algolen, keyblob, keybloblen) == DROPBEAR_SUCCESS) { if (ret == DROPBEAR_SUCCESS) {
break; break;
} }
   
Loading
Loading