version 1.149, 2020/10/18 11:32:01 |
version 1.150, 2020/12/20 23:36:51 |
|
|
const struct hostkey_entry *found; |
const struct hostkey_entry *found; |
|
|
hostkeys = init_hostkeys(); |
hostkeys = init_hostkeys(); |
load_hostkeys(hostkeys, host, sysfile); |
load_hostkeys(hostkeys, host, sysfile, 0); |
if (userfile != NULL) { |
if (userfile != NULL) { |
user_hostfile = tilde_expand_filename(userfile, pw->pw_uid); |
user_hostfile = tilde_expand_filename(userfile, pw->pw_uid); |
if (options.strict_modes && |
if (options.strict_modes && |
|
|
user_hostfile); |
user_hostfile); |
} else { |
} else { |
temporarily_use_uid(pw); |
temporarily_use_uid(pw); |
load_hostkeys(hostkeys, host, user_hostfile); |
load_hostkeys(hostkeys, host, user_hostfile, 0); |
restore_uid(); |
restore_uid(); |
} |
} |
free(user_hostfile); |
free(user_hostfile); |