version 1.149, 2006/03/19 18:51:19 |
version 1.150, 2006/03/25 00:05:41 |
|
|
if (key && key->type == KEY_RSA1) |
if (key && key->type == KEY_RSA1) |
continue; |
continue; |
options.identity_keys[i] = NULL; |
options.identity_keys[i] = NULL; |
id = xmalloc(sizeof(*id)); |
id = xcalloc(1, sizeof(*id)); |
memset(id, 0, sizeof(*id)); |
|
id->key = key; |
id->key = key; |
id->filename = xstrdup(options.identity_files[i]); |
id->filename = xstrdup(options.identity_files[i]); |
TAILQ_INSERT_TAIL(&files, id, next); |
TAILQ_INSERT_TAIL(&files, id, next); |
|
|
} |
} |
} |
} |
if (!found && !options.identities_only) { |
if (!found && !options.identities_only) { |
id = xmalloc(sizeof(*id)); |
id = xcalloc(1, sizeof(*id)); |
memset(id, 0, sizeof(*id)); |
|
id->key = key; |
id->key = key; |
id->filename = comment; |
id->filename = comment; |
id->ac = ac; |
id->ac = ac; |
|
|
return 0; |
return 0; |
} |
} |
len = strlen(p) + 2; |
len = strlen(p) + 2; |
chost = xmalloc(len); |
xasprintf(&chost, "%s.", p); |
strlcpy(chost, p, len); |
|
strlcat(chost, ".", len); |
|
debug2("userauth_hostbased: chost %s", chost); |
debug2("userauth_hostbased: chost %s", chost); |
xfree(p); |
xfree(p); |
|
|