Lines Matching refs:conn

249                                      struct connectdata *conn);
255 struct connectdata *conn, bool dead);
256 static int smb_getsock(struct Curl_easy *data, struct connectdata *conn,
259 struct connectdata *conn);
371 struct smb_conn *smbc = &data->conn->proto.smbc; in conn_state()
420 struct connectdata *conn) in smb_setup_connection() argument
430 return smb_parse_url_path(data, conn); in smb_setup_connection()
435 struct connectdata *conn = data->conn; in smb_connect() local
436 struct smb_conn *smbc = &conn->proto.smbc; in smb_connect()
455 connkeep(conn, "SMB default"); in smb_connect()
458 slash = strchr(conn->user, '/'); in smb_connect()
460 slash = strchr(conn->user, '\\'); in smb_connect()
464 smbc->domain = strdup(conn->user); in smb_connect()
467 smbc->domain[slash - conn->user] = 0; in smb_connect()
470 smbc->user = conn->user; in smb_connect()
471 smbc->domain = strdup(conn->host.name); in smb_connect()
481 struct connectdata *conn = data->conn; in smb_recv_message() local
482 struct smb_conn *smbc = &conn->proto.smbc; in smb_recv_message()
527 static void smb_pop_message(struct connectdata *conn) in smb_pop_message() argument
529 struct smb_conn *smbc = &conn->proto.smbc; in smb_pop_message()
537 struct connectdata *conn = data->conn; in smb_format_message() local
538 struct smb_conn *smbc = &conn->proto.smbc; in smb_format_message()
559 struct connectdata *conn = data->conn; in smb_send() local
560 struct smb_conn *smbc = &conn->proto.smbc; in smb_send()
580 struct connectdata *conn = data->conn; in smb_flush() local
581 struct smb_conn *smbc = &conn->proto.smbc; in smb_flush()
605 struct connectdata *conn = data->conn; in smb_send_message() local
606 struct smb_conn *smbc = &conn->proto.smbc; in smb_send_message()
625 struct connectdata *conn = data->conn; in smb_send_setup() local
626 struct smb_conn *smbc = &conn->proto.smbc; in smb_send_setup()
640 Curl_ntlm_core_mk_lm_hash(conn->passwd, lm_hash); in smb_send_setup()
642 Curl_ntlm_core_mk_nt_hash(conn->passwd, nt_hash); in smb_send_setup()
676 struct connectdata *conn = data->conn; in smb_send_tree_connect() local
677 struct smb_conn *smbc = &conn->proto.smbc; in smb_send_tree_connect()
680 const size_t byte_count = strlen(conn->host.name) + strlen(smbc->share) + in smb_send_tree_connect()
694 conn->host.name, smbc->share, 0, SERVICENAME); in smb_send_tree_connect()
773 struct connectdata *conn = data->conn; in smb_send_write() local
774 struct smb_conn *smbc = &conn->proto.smbc; in smb_send_write()
802 struct connectdata *conn = data->conn; in smb_send_and_recv() local
803 struct smb_conn *smbc = &conn->proto.smbc; in smb_send_and_recv()
840 struct connectdata *conn = data->conn; in smb_connection_state() local
841 struct smb_conn *smbc = &conn->proto.smbc; in smb_connection_state()
849 if((conn->handler->flags & PROTOPT_SSL)) { in smb_connection_state()
861 connclose(conn, "SMB: failed to send negotiate message"); in smb_connection_state()
871 connclose(conn, "SMB: failed to communicate"); in smb_connection_state()
884 connclose(conn, "SMB: negotiation failed"); in smb_connection_state()
892 connclose(conn, "SMB: failed to send setup message"); in smb_connection_state()
900 connclose(conn, "SMB: authentication failed"); in smb_connection_state()
909 smb_pop_message(conn); in smb_connection_state()
913 smb_pop_message(conn); in smb_connection_state()
938 struct connectdata *conn = data->conn; in smb_request_state() local
941 struct smb_conn *smbc = &conn->proto.smbc; in smb_request_state()
958 connclose(conn, "SMB: failed to send tree connect message"); in smb_request_state()
968 connclose(conn, "SMB: failed to communicate"); in smb_request_state()
1076 smb_pop_message(conn); in smb_request_state()
1080 smb_pop_message(conn); in smb_request_state()
1113 connclose(conn, "SMB: failed to send message"); in smb_request_state()
1123 struct connectdata *conn, bool dead) in smb_disconnect() argument
1125 struct smb_conn *smbc = &conn->proto.smbc; in smb_disconnect()
1136 struct connectdata *conn, curl_socket_t *socks) in smb_getsock() argument
1139 socks[0] = conn->sock[FIRSTSOCKET]; in smb_getsock()
1145 struct connectdata *conn = data->conn; in smb_do() local
1146 struct smb_conn *smbc = &conn->proto.smbc; in smb_do()
1156 struct connectdata *conn) in smb_parse_url_path() argument
1159 struct smb_conn *smbc = &conn->proto.smbc; in smb_parse_url_path()