static char buf[1024]; switch (type) { case SSH_CMSG_AUTH_PASSWORD: return "password"; case SSH_CMSG_AUTH_RSA: return "rsa"; case SSH_CMSG_AUTH_RHOSTS_RSA: return "rhosts-rsa"; case SSH_CMSG_AUTH_RHOSTS: return "rhosts"; case SSH_CMSG_AUTH_TIS: case SSH_CMSG_AUTH_TIS_RESPONSE: return "challenge-response"; } snprintf(buf, sizeof buf, "bad-auth-msg-%d", type); return buf;
const struct AuthMethod1 *a; static char buf[64];  if ((a = lookup_authmethod1(type)) != NULL) return (a->name); snprintf(buf, sizeof(buf), "bad-auth-msg-%d", type); return (buf);
get_authname(int type){	static char buf[1024];	switch (type) {	case SSH_CMSG_AUTH_PASSWORD:		return "password";	case SSH_CMSG_AUTH_RSA:		return "rsa";	case SSH_CMSG_AUTH_RHOSTS_RSA:		return "rhosts-rsa";	case SSH_CMSG_AUTH_RHOSTS:		return "rhosts";	case SSH_CMSG_AUTH_TIS:	case SSH_CMSG_AUTH_TIS_RESPONSE:		return "challenge-response";	}	snprintf(buf, sizeof buf, "bad-auth-msg-%d", type);	return buf;}