version 1.9, 2015/01/12 13:29:27 |
version 1.10, 2015/01/12 20:13:27 |
|
|
return SSH_ERR_ALLOC_FAIL; |
return SSH_ERR_ALLOC_FAIL; |
/* trim comment */ |
/* trim comment */ |
space = strchr(cp, ' '); |
space = strchr(cp, ' '); |
if (space) |
if (space) { |
*space = '\0'; |
/* advance 'space': skip whitespace */ |
|
*space++ = '\0'; |
|
while (*space == ' ' || *space == '\t') |
|
space++; |
|
*cpp = space; |
|
} else |
|
*cpp = cp + strlen(cp); |
if ((r = sshbuf_b64tod(blob, cp)) != 0) { |
if ((r = sshbuf_b64tod(blob, cp)) != 0) { |
sshbuf_free(blob); |
sshbuf_free(blob); |
return r; |
return r; |
|
|
sshkey_free(k); |
sshkey_free(k); |
if (retval != 0) |
if (retval != 0) |
break; |
break; |
/* advance cp: skip whitespace and data */ |
|
while (*cp == ' ' || *cp == '\t') |
|
cp++; |
|
while (*cp != '\0' && *cp != ' ' && *cp != '\t') |
|
cp++; |
|
*cpp = cp; |
|
break; |
break; |
default: |
default: |
return SSH_ERR_INVALID_ARGUMENT; |
return SSH_ERR_INVALID_ARGUMENT; |