version 1.92, 2011/05/11 04:47:06 |
version 1.93, 2011/05/23 03:30:07 |
|
|
* |
* |
* This returns a buffer allocated by xmalloc. |
* This returns a buffer allocated by xmalloc. |
*/ |
*/ |
static char * |
char * |
expand_authorized_keys(const char *filename, struct passwd *pw) |
expand_authorized_keys(const char *filename, struct passwd *pw) |
{ |
{ |
char *file, ret[MAXPATHLEN]; |
char *file, ret[MAXPATHLEN]; |
|
|
fatal("expand_authorized_keys: path too long"); |
fatal("expand_authorized_keys: path too long"); |
xfree(file); |
xfree(file); |
return (xstrdup(ret)); |
return (xstrdup(ret)); |
} |
|
|
|
char * |
|
authorized_keys_file(struct passwd *pw) |
|
{ |
|
return expand_authorized_keys(options.authorized_keys_file, pw); |
|
} |
} |
|
|
char * |
char * |