Lines Matching refs:options

81 extern ServerOptions options;
112 if (!options.use_pam && platform_locked_account(pw)) { in allowed_user()
122 if (options.chroot_directory == NULL || in allowed_user()
123 strcasecmp(options.chroot_directory, "none") == 0) { in allowed_user()
143 if (options.num_deny_users > 0 || options.num_allow_users > 0 || in allowed_user()
144 options.num_deny_groups > 0 || options.num_allow_groups > 0) { in allowed_user()
145 hostname = auth_get_canonical_hostname(ssh, options.use_dns); in allowed_user()
150 if (options.num_deny_users > 0) { in allowed_user()
151 for (i = 0; i < options.num_deny_users; i++) { in allowed_user()
153 options.deny_users[i]); in allowed_user()
156 options.deny_users[i]); in allowed_user()
166 if (options.num_allow_users > 0) { in allowed_user()
167 for (i = 0; i < options.num_allow_users; i++) { in allowed_user()
169 options.allow_users[i]); in allowed_user()
172 options.allow_users[i]); in allowed_user()
177 if (i >= options.num_allow_users) { in allowed_user()
183 if (options.num_deny_groups > 0 || options.num_allow_groups > 0) { in allowed_user()
192 if (options.num_deny_groups > 0) in allowed_user()
193 if (ga_match(options.deny_groups, in allowed_user()
194 options.num_deny_groups)) { in allowed_user()
205 if (options.num_allow_groups > 0) in allowed_user()
206 if (!ga_match(options.allow_groups, in allowed_user()
207 options.num_allow_groups)) { in allowed_user()
242 options.fingerprint_hash, SSH_FP_DEFAULT); in format_method_key()
244 options.fingerprint_hash, SSH_FP_DEFAULT); in format_method_key()
256 fp = sshkey_fingerprint(key, options.fingerprint_hash, in format_method_key()
282 authctxt->failures >= options.max_authtries / 2 || in auth_log()
322 auth_get_canonical_hostname(ssh, options.use_dns), "ssh"); in auth_log()
332 auth_get_canonical_hostname(ssh, options.use_dns), "ssh", in auth_log()
358 switch (options.permit_root_login) { in auth_root_allowed()
415 if (options.authorized_principals_file == NULL) in authorized_principals_file()
417 return expand_authorized_keys(options.authorized_principals_file, pw); in authorized_principals_file()
435 if (options.strict_modes && in check_key_in_hostfiles()
482 ci = get_connection_info(ssh, 1, options.use_dns); in getpwnamallow()
484 parse_server_match_config(&options, &includes, ci); in getpwnamallow()
485 log_change_level(options.log_level); in getpwnamallow()
487 for (i = 0; i < options.num_log_verbose; i++) in getpwnamallow()
488 log_verbose_add(options.log_verbose[i]); in getpwnamallow()
489 process_permitopen(ssh, &options); in getpwnamallow()
506 auth_get_canonical_hostname(ssh, options.use_dns), "ssh"); in getpwnamallow()
521 from_host = auth_get_canonical_hostname(ssh, options.use_dns); in getpwnamallow()
557 if (options.revoked_keys_file == NULL) in auth_key_is_revoked()
559 if ((fp = sshkey_fingerprint(key, options.fingerprint_hash, in auth_key_is_revoked()
566 r = sshkey_check_revoked(key, options.revoked_keys_file); in auth_key_is_revoked()
572 sshkey_type(key), fp, options.revoked_keys_file); in auth_key_is_revoked()
577 options.revoked_keys_file); in auth_key_is_revoked()
781 int do_env = options.permit_user_env && opts->nenv > 0; in auth_log_authopts()
783 (options.allow_tcp_forwarding & FORWARD_LOCAL) != 0; in auth_log_authopts()
785 (options.allow_tcp_forwarding & FORWARD_REMOTE) != 0; in auth_log_authopts()
812 if (options.permit_user_env) { in auth_log_authopts()