supported_authentications = 0;
ssh_login(int host_key_valid, RSA *own_host_key, const char *orighost,    struct sockaddr *hostaddr, uid_t original_real_uid){	char *host, *cp;	/* Convert the user-supplied hostname into all lowercase. */	host = xstrdup(orighost);	for (cp = host; *cp; cp++)		if (isupper(*cp))			*cp = tolower(*cp);	/* Exchange protocol version identification strings with the server. */	ssh_exchange_identification();	/* Put the connection into non-blocking mode. */	packet_set_nonblocking();	/* key exchange */	/* authenticate user */	if (compat20) {		ssh_kex2(host, hostaddr);		ssh_userauth2(host_key_valid, own_host_key, original_real_uid, host);	} else {		supported_authentications = 0;		ssh_kex(host, hostaddr);		if (supported_authentications == 0)			fatal("supported_authentications == 0.");		ssh_userauth(host_key_valid, own_host_key, original_real_uid, host);	}}