Lines Matching refs:options
50 extern Options options;
209 if (options.bind_address == NULL) in ssh_create_socket()
216 gaierr = getaddrinfo(options.bind_address, "0", &hints, &res); in ssh_create_socket()
218 error("getaddrinfo: %s: %s", options.bind_address, in ssh_create_socket()
224 error("bind: %s: %s", options.bind_address, strerror(errno)); in ssh_create_socket()
392 options.connection_timeout) >= 0) { in ssh_connect()
432 if (options.keepalives && in ssh_connect()
497 (options.protocol & SSH_PROTO_2) && in ssh_exchange_identification()
498 !(options.protocol & SSH_PROTO_1_PREFERRED)) { in ssh_exchange_identification()
502 if (!(options.protocol & SSH_PROTO_1)) { in ssh_exchange_identification()
512 if (options.forward_agent) { in ssh_exchange_identification()
514 options.forward_agent = 0; in ssh_exchange_identification()
519 if (options.protocol & SSH_PROTO_2) { in ssh_exchange_identification()
530 (options.protocol & SSH_PROTO_2) ? PROTOCOL_MAJOR_2 : PROTOCOL_MAJOR_1, in ssh_exchange_identification()
556 if (options.batch_mode) in confirm()
646 if (options.no_host_authentication_for_localhost == 1 && local && in check_host_key()
647 options.host_key_alias == NULL) { in check_host_key()
657 if (options.proxy_command == NULL) { in check_host_key()
669 if (options.check_host_ip && in check_host_key()
670 (local || strcmp(host, ip) == 0 || options.proxy_command != NULL)) in check_host_key()
671 options.check_host_ip = 0; in check_host_key()
678 if (options.host_key_alias != NULL) { in check_host_key()
679 host = options.host_key_alias; in check_host_key()
705 if (options.check_host_ip) { in check_host_key()
736 if (options.check_host_ip && ip_status == HOST_NEW) { in check_host_key()
742 host_key, options.hash_known_hosts)) in check_host_key()
756 if (!validated && options.strict_host_key_checking == 1) { in check_host_key()
766 options.strict_host_key_checking == 2) { in check_host_key()
788 if (options.check_host_ip && ip_status == HOST_NEW) { in check_host_key()
792 if (options.hash_known_hosts) { in check_host_key()
795 host_key, options.hash_known_hosts) && in check_host_key()
797 host_key, options.hash_known_hosts); in check_host_key()
802 options.hash_known_hosts); in check_host_key()
806 options.hash_known_hosts); in check_host_key()
822 if (options.check_host_ip && host_ip_differ) { in check_host_key()
831 if (options.check_host_ip && host_ip_differ) { in check_host_key()
870 if (options.strict_host_key_checking) { in check_host_key()
881 if (options.password_authentication) { in check_host_key()
884 options.password_authentication = 0; in check_host_key()
886 if (options.forward_agent) { in check_host_key()
889 options.forward_agent = 0; in check_host_key()
891 if (options.forward_x11) { in check_host_key()
894 options.forward_x11 = 0; in check_host_key()
896 if (options.num_local_forwards > 0 || in check_host_key()
897 options.num_remote_forwards > 0) { in check_host_key()
900 options.num_local_forwards = in check_host_key()
901 options.num_remote_forwards = 0; in check_host_key()
916 if (options.check_host_ip && host_status != HOST_CHANGED && in check_host_key()
929 if (!validated && options.strict_host_key_checking == 1) { in check_host_key()
934 options.strict_host_key_checking == 2) { in check_host_key()
960 if (stat(options.system_hostfile2, &st) == 0 || in verify_host_key()
961 stat(options.user_hostfile2, &st) == 0) { in verify_host_key()
963 options.user_hostfile2, options.system_hostfile2) == 0) in verify_host_key()
967 options.user_hostfile, options.system_hostfile); in verify_host_key()
976 if (stat(options.system_hostfile2, &st) == 0 || in accept_host_key()
977 stat(options.user_hostfile2, &st) == 0) { in accept_host_key()
979 options.user_hostfile2, options.system_hostfile2) == 0) in accept_host_key()
983 options.user_hostfile, options.system_hostfile); in accept_host_key()
1000 server_user = options.user ? options.user : local_user; in ssh_login()
1015 if (compat20 == 1 && options.use_openssl_engine == 1) { in ssh_login()
1022 e = pkcs11_engine_load(options.use_openssl_engine); in ssh_login()
1097 show_key_from_file(options.user_hostfile2, host, type[i])) { in show_other_keys()
1102 show_key_from_file(options.system_hostfile2, host, type[i])) { in show_other_keys()
1106 if (show_key_from_file(options.user_hostfile, host, type[i])) { in show_other_keys()
1110 if (show_key_from_file(options.system_hostfile, host, type[i])) { in show_other_keys()