int check_auth_bystr(char* host, int port, char* user, char* pass, int chmode);