Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 43) sorted by relevance

12

/openssh-portable/
H A Dreadconf.c336 fwd = &options->local_forwards[options->num_local_forwards++]; in add_local_forward()
562 ruser = options->user == NULL ? pw->pw_name : options->user; in match_cfg_line()
721 options->send_env[j] = options->send_env[j + 1]; in rm_env()
1428 options->send_env, options->num_send_env, in process_config_line_depth()
1431 options->send_env[options->num_send_env++] = in process_config_line_depth()
1450 options->setenv, options->num_setenv, in process_config_line_depth()
1451 options->num_setenv + 1, sizeof(*options->setenv)); in process_config_line_depth()
1452 options->setenv[options->num_setenv++] = xstrdup(arg); in process_config_line_depth()
1850 memset(options, 'X', sizeof(*options)); in initialize_options()
2060 options->user_hostfiles[options->num_user_hostfiles++] = in fill_default_options()
[all …]
H A Dservconf.c82 memset(options, 0, sizeof(*options)); in initialize_server_options()
299 options->ports[options->num_ports++] = SSH_DEFAULT_PORT; in fill_default_server_options()
1288 options->ports[options->num_ports++] = a2port(arg); in process_server_config_line()
1289 if (options->ports[options->num_ports-1] <= 0) in process_server_config_line()
1677 &options->allow_users, &options->num_allow_users, in process_server_config_line()
1690 &options->deny_users, &options->num_deny_users, in process_server_config_line()
1710 &options->deny_groups, &options->num_deny_groups, in process_server_config_line()
1786 options->subsystem_args[options->num_subsystems] = p; in process_server_config_line()
1809 options->max_startups = options->max_startups_begin; in process_server_config_line()
1873 &options->accept_env, &options->num_accept_env, in process_server_config_line()
[all …]
H A Dssh.c158 Options options; variable
836 options.tun_local = a2tun(optarg, &options.tun_remote); in main()
1203 options.jump_user == NULL ? "" : options.jump_user, in main()
1209 options.jump_extra == NULL ? "" : options.jump_extra, in main()
1291 ssh_digest_update(md, options.user, strlen(options.user)) < 0 || in main()
1373 options.address_family, options.connection_attempts, in main()
1723 &options.local_forwards[i], &options.fwd_opts); in ssh_init_forwarding()
1762 options.tun_open, options.tun_local, in ssh_init_forwarding()
1803 options.xauth_location, options.forward_x11_trusted, in ssh_session2_setup()
1825 options.ip_qos_interactive, options.ip_qos_bulk); in ssh_session2_setup()
[all …]
H A Dsshconnect.c81 extern Options options;
100 "r", options.user, in expand_proxy_command()
170 options.control_persist) in ssh_proxy_fdpass_connect()
385 if (options.bind_address == NULL && options.bind_interface == NULL) in ssh_create_socket()
575 options.proxy_command); in ssh_connect()
587 if (options.batch_mode) in confirm()
759 options.check_host_ip = 0; in check_host_key()
1051 options.forward_x11 = 0; in check_host_key()
1251 options.user_hostfiles, options.num_user_hostfiles, in verify_host_key()
1252 options.system_hostfiles, options.num_system_hostfiles); in verify_host_key()
[all …]
H A Dsshd.c135 ServerOptions options; variable
825 p /= options.max_startups - options.max_startups_begin;
1524 options.ports[options.num_ports++] = a2port(optarg);
1525 if (options.ports[options.num_ports-1] <= 0) {
1888 log_init(__progname, options.log_level, options.log_facility, log_stderr);
1904 log_init(__progname, options.log_level, options.log_facility, log_stderr);
2157 if (options.use_pam) {
2189 if (options.use_pam)
2250 options.ciphers);
2252 options.ciphers);
[all …]
H A Dauth.c82 extern ServerOptions options;
116 if (!options.use_pam) in allowed_user()
187 if (options.num_deny_users > 0 || options.num_allow_users > 0 || in allowed_user()
188 options.num_deny_groups > 0 || options.num_allow_groups > 0) { in allowed_user()
197 options.deny_users[i]); in allowed_user()
200 options.deny_users[i]); in allowed_user()
213 options.allow_users[i]); in allowed_user()
216 options.allow_users[i]); in allowed_user()
227 if (options.num_deny_groups > 0 || options.num_allow_groups > 0) { in allowed_user()
474 if (options.strict_modes && in check_key_in_hostfiles()
[all …]
H A Dplatform.c35 extern ServerOptions options;
111 if (!options.use_pam && (getuid() == 0 || geteuid() == 0)) in platform_setusercontext()
126 if (options.use_pam) { in platform_setusercontext()
154 if (options.use_pam) { in platform_setusercontext_post_groups()
178 if (options.chroot_directory != NULL && in platform_setusercontext_post_groups()
179 strcasecmp(options.chroot_directory, "none") != 0) in platform_setusercontext_post_groups()
H A Dclientloop.c116 extern Options options;
853 &options.fwd_opts) > 0; in process_cmdline()
866 &options.fwd_opts)) { in process_cmdline()
1251 if (options.control_master && in client_loop()
1258 } else if (options.forward_x11 || options.permit_local_command) { in client_loop()
1579 if (!options.forward_x11) { in client_request_x11()
1615 if (!options.forward_agent) { in client_request_agent()
1928 options.update_hostkeys = 0; in update_known_hosts()
2070 options.batch_mode) in client_input_hostkeys()
2072 if (!options.update_hostkeys || options.num_user_hostfiles <= 0) in client_input_hostkeys()
[all …]
H A Dmux.c73 extern Options options;
822 &options.fwd_opts)) { in mux_master_process_open_fwd()
949 &options.fwd_opts) == -1) in mux_master_process_close_fwd()
1131 free(options.control_path); in mux_master_process_stop_listening()
1132 options.control_path = NULL; in mux_master_process_stop_listening()
1314 options.control_path = NULL; in muxserver_listen()
1332 free(options.control_path); in muxserver_listen()
1354 unlink(options.control_path); in muxserver_listen()
1355 free(options.control_path); in muxserver_listen()
1402 options.forward_x11_trusted, options.forward_x11_timeout, in mux_session_confirm()
[all …]
H A Dauth2-pubkey.c73 extern ServerOptions options;
81 options.fingerprint_hash, SSH_FP_DEFAULT); in format_key()
158 options.ca_sign_algorithms)) != 0) { in userauth_pubkey()
427 if (options.authorized_principals_command == NULL) in match_principals_command()
459 options.authorized_principals_command); in match_principals_command()
739 options.trusted_user_ca_keys, 1, 0)) != 0) { in user_cert_trusted_ca()
742 options.trusted_user_ca_keys, ssh_err(r)); in user_cert_trusted_ca()
804 options.trusted_user_ca_keys); in user_cert_trusted_ca()
866 if (options.authorized_keys_command == NULL) in user_key_command_allowed2()
1003 options.authorized_keys_files[i], pw); in user_key_allowed()
[all …]
H A Dauth2-hostbased.c56 extern ServerOptions options;
111 if (match_pattern_list(pkalg, options.hostbased_key_types, 0) != 1) { in userauth_hostbased()
117 options.ca_sign_algorithms)) != 0) { in userauth_hostbased()
183 resolvedname = auth_get_canonical_hostname(ssh, options.use_dns); in hostbased_key_allowed()
194 if (options.hostbased_uses_name_from_packet_only) { in hostbased_key_allowed()
226 options.ignore_user_known_hosts ? NULL : _PATH_SSH_USER_HOSTFILE); in hostbased_key_allowed()
232 options.ignore_user_known_hosts ? NULL : in hostbased_key_allowed()
239 options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) in hostbased_key_allowed()
247 options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) in hostbased_key_allowed()
261 &options.hostbased_authentication
H A Dauth2.c66 extern ServerOptions options;
160 if (options.banner == NULL) in userauth_banner()
302 if (options.use_pam) in input_userauth_request()
466 if (options.num_auth_methods == 0) in auth2_method_allowed()
582 if (options.num_auth_methods == 1 && in auth2_setup_methods_lists()
584 free(options.auth_methods[0]); in auth2_setup_methods_lists()
585 options.auth_methods[0] = NULL; in auth2_setup_methods_lists()
586 options.num_auth_methods = 0; in auth2_setup_methods_lists()
589 if (options.num_auth_methods == 0) in auth2_setup_methods_lists()
599 options.auth_methods[i]); in auth2_setup_methods_lists()
[all …]
H A Dsshconnect2.c83 extern Options options;
196 if (options.rekey_limit || options.rekey_interval) in ssh_kex2()
198 options.rekey_interval); in ssh_kex2()
339 &options.gss_authentication,
350 &options.pubkey_authentication,
356 &options.batch_mode},
361 &options.batch_mode},
983 const char *host = options.host_key_alias ? options.host_key_alias : in userauth_passwd()
1033 host = options.host_key_alias ? options.host_key_alias : authctxt->host; in input_userauth_passwd_changereq()
1433 if (options.batch_mode) { in load_identity_file()
[all …]
H A Dsession.c134 extern ServerOptions options;
524 options.ip_qos_interactive, options.ip_qos_bulk); in do_exec_no_pty()
653 options.ip_qos_interactive, options.ip_qos_bulk); in do_exec_pty()
768 options.use_dns), in do_login()
801 if (options.print_motd) { in do_motd()
1055 if (!options.use_pam) { in do_setup_env()
1104 if (options.permit_user_env) { in do_setup_env()
1134 if (options.use_pam) { in do_setup_env()
1254 options.xauth_location); in do_rc_files()
1544 if (!options.use_pam) in do_child()
[all …]
H A Dauth2-none.c56 extern ServerOptions options;
69 if (options.permit_empty_passwd && options.password_authentication) in userauth_none()
H A Dauth2-kbdint.c45 extern ServerOptions options;
60 if (options.challenge_response_authentication) in userauth_kbdint()
71 &options.kbd_interactive_authentication
H A Dauth-passwd.c60 extern ServerOptions options;
90 if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) in auth_password()
93 if (*password == '\0' && options.permit_empty_passwd == 0) in auth_password()
97 if (options.kerberos_authentication == 1) { in auth_password()
115 if (options.use_pam) in auth_password()
H A Dauth-sia.c48 extern ServerOptions options;
60 host = get_canonical_hostname(options.use_dns); in sys_auth_passwd()
89 host = get_canonical_hostname(options.use_dns); in session_setup_sia()
H A Dserverloop.c82 extern ServerOptions options;
188 options.client_alive_count_max) { in client_alive_check()
247 if (options.client_alive_interval) { in wait_until_can_do_something()
303 options.client_alive_interval <= now)) { in wait_until_can_do_something()
429 if (options.rekey_interval > 0 && in server_loop2()
509 !options.disable_forwarding) { in server_request_direct_tcpip()
587 if ((options.permit_tun & mode) == 0) { in server_request_tun()
843 options.disable_forwarding || in server_input_global_request()
852 &allocated_listen_port, &options.fwd_opts); in server_input_global_request()
879 options.disable_forwarding || in server_input_global_request()
[all …]
H A Dssh-keysign.c169 Options options; in main() local
209 initialize_options(&options); in main()
211 &options, 0, NULL); in main()
212 fill_default_options(&options); in main()
213 if (options.enable_ssh_keysign != 1) in main()
275 if ((fp = sshkey_fingerprint(key, options.fingerprint_hash, in main()
H A Dmonitor.c104 extern ServerOptions options;
768 if ((r = sshbuf_put_string(m, &options, sizeof(options))) != 0) in mm_answer_pwnamallow()
772 if (options.x != NULL) { \ in mm_answer_pwnamallow()
808 if (options.use_pam) in mm_answer_pwnamallow()
991 if (!options.use_pam) in mm_answer_pam_start()
1009 if (!options.use_pam) in mm_answer_pam_account()
1184 options.pubkey_key_types)) in mm_answer_keyallowed()
1595 if (options.use_pam) in mm_answer_term()
1783 if (!options.gss_authentication) in mm_answer_gss_setup_ctx()
1816 if (!options.gss_authentication) in mm_answer_gss_accept_ctx()
[all …]
H A Dauth2-passwd.c49 extern ServerOptions options;
77 &options.password_authentication
H A Dauth-rhosts.c46 extern ServerOptions options;
263 if (options.strict_modes && in auth_rhosts2()
290 if (options.strict_modes && in auth_rhosts2()
302 if (options.ignore_rhosts) { in auth_rhosts2()
/openssh-portable/openbsd-compat/
H A Dgetopt_long.c81 #define PRINT_ERROR ((opterr) && (*options != ':'))
89 #define BADARG ((*options == ':') ? (int)':' : (int)'?')
176 parse_long_options(char * const *nargv, const char *options, in parse_long_options() argument
301 if (options == NULL) in getopt_internal()
317 if (*options == '-') in getopt_internal()
319 else if (posixly_correct || *options == '+') in getopt_internal()
321 if (*options == '+' || *options == '-') in getopt_internal()
322 options++; in getopt_internal()
349 (place[1] == '\0' && strchr(options, '-') == NULL)) { in getopt_internal()
427 (oli = strchr(options, optchar)) == NULL) { in getopt_internal()
[all …]
H A Dbsd-waitpid.c33 waitpid(int pid, int *stat_loc, int options) in waitpid() argument
46 wait_pid = wait4(pid, &statusp, options, NULL); in waitpid()

Completed in 47 milliseconds

12