if (options->rekey_limit == -1) options->rekey_limit = 0;
fill_default_options(Options * options){	int len;	if (options->forward_agent == -1)		options->forward_agent = 0;	if (options->forward_x11 == -1)		options->forward_x11 = 0;	if (options->xauth_location == NULL)		options->xauth_location = _PATH_XAUTH;	if (options->gateway_ports == -1)		options->gateway_ports = 0;	if (options->use_privileged_port == -1)		options->use_privileged_port = 0;	if (options->rhosts_authentication == -1)		options->rhosts_authentication = 0;	if (options->rsa_authentication == -1)		options->rsa_authentication = 1;	if (options->pubkey_authentication == -1)		options->pubkey_authentication = 1;	if (options->challenge_response_authentication == -1)		options->challenge_response_authentication = 1;#if defined(KRB4) || defined(KRB5)	if (options->kerberos_authentication == -1)		options->kerberos_authentication = 1;#endif#if defined(AFS) || defined(KRB5)	if (options->kerberos_tgt_passing == -1)		options->kerberos_tgt_passing = 1;#endif#ifdef AFS	if (options->afs_token_passing == -1)		options->afs_token_passing = 1;#endif	if (options->password_authentication == -1)		options->password_authentication = 1;	if (options->kbd_interactive_authentication == -1)		options->kbd_interactive_authentication = 1;	if (options->rhosts_rsa_authentication == -1)		options->rhosts_rsa_authentication = 0;	if (options->hostbased_authentication == -1)		options->hostbased_authentication = 0;	if (options->batch_mode == -1)		options->batch_mode = 0;	if (options->check_host_ip == -1)		options->check_host_ip = 1;	if (options->strict_host_key_checking == -1)		options->strict_host_key_checking = 2;	/* 2 is default */	if (options->compression == -1)		options->compression = 0;	if (options->keepalives == -1)		options->keepalives = 1;	if (options->compression_level == -1)		options->compression_level = 6;	if (options->port == -1)		options->port = 0;	/* Filled in ssh_connect. */	if (options->connection_attempts == -1)		options->connection_attempts = 1;	if (options->number_of_password_prompts == -1)		options->number_of_password_prompts = 3;	/* Selected in ssh_login(). */	if (options->cipher == -1)		options->cipher = SSH_CIPHER_NOT_SET;	/* options->ciphers, default set in myproposals.h */	/* options->macs, default set in myproposals.h */	/* options->hostkeyalgorithms, default set in myproposals.h */	if (options->protocol == SSH_PROTO_UNKNOWN)		options->protocol = SSH_PROTO_1|SSH_PROTO_2;	if (options->num_identity_files == 0) {		if (options->protocol & SSH_PROTO_1) {			len = 2 + strlen(_PATH_SSH_CLIENT_IDENTITY) + 1;			options->identity_files[options->num_identity_files] =			    xmalloc(len);			snprintf(options->identity_files[options->num_identity_files++],			    len, "~/%.100s", _PATH_SSH_CLIENT_IDENTITY);		}		if (options->protocol & SSH_PROTO_2) {			len = 2 + strlen(_PATH_SSH_CLIENT_ID_RSA) + 1;			options->identity_files[options->num_identity_files] =			    xmalloc(len);			snprintf(options->identity_files[options->num_identity_files++],			    len, "~/%.100s", _PATH_SSH_CLIENT_ID_RSA);			len = 2 + strlen(_PATH_SSH_CLIENT_ID_DSA) + 1;			options->identity_files[options->num_identity_files] =			    xmalloc(len);			snprintf(options->identity_files[options->num_identity_files++],			    len, "~/%.100s", _PATH_SSH_CLIENT_ID_DSA);		}	}	if (options->escape_char == -1)		options->escape_char = '~';	if (options->system_hostfile == NULL)		options->system_hostfile = _PATH_SSH_SYSTEM_HOSTFILE;	if (options->user_hostfile == NULL)		options->user_hostfile = _PATH_SSH_USER_HOSTFILE;	if (options->system_hostfile2 == NULL)		options->system_hostfile2 = _PATH_SSH_SYSTEM_HOSTFILE2;	if (options->user_hostfile2 == NULL)		options->user_hostfile2 = _PATH_SSH_USER_HOSTFILE2;	if (options->log_level == SYSLOG_LEVEL_NOT_SET)		options->log_level = SYSLOG_LEVEL_INFO;	if (options->clear_forwardings == 1)		clear_forwardings(options);	if (options->no_host_authentication_for_localhost == - 1)		options->no_host_authentication_for_localhost = 0;	if (options->enable_ssh_keysign == -1)		options->enable_ssh_keysign = 0;	/* options->proxy_command should not be set by default */	/* options->user will be set in the main program if appropriate */	/* options->hostname will be set in the main program if appropriate */	/* options->host_key_alias should not be set by default */	/* options->preferred_authentications will be set in ssh */}