return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_02);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB2_02,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_CORE, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_CORE,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- protocol, protocol);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ protocol,
+ protocol,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET) &&
!NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_DISCONNECTED) &&
!NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_ABORTED)) {
return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
return false;
}
- status = smbXcli_negprot(cli1->conn, cli1->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli1->conn,
+ cli1->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
return false;
}
- status = smbXcli_negprot(cli2->conn, cli2->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli2->conn,
+ cli2->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
cli_state_client_guid = saved_guid;
- status = smbXcli_negprot(cli1->conn, cli1->timeout,
- PROTOCOL_SMB3_00, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli1->conn,
+ cli1->timeout,
+ PROTOCOL_SMB3_00,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
- status = smbXcli_negprot(cli2->conn, cli2->timeout,
- PROTOCOL_SMB3_00, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli2->conn,
+ cli2->timeout,
+ PROTOCOL_SMB3_00,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
- status = smbXcli_negprot(cli3->conn, cli3->timeout,
- PROTOCOL_SMB3_00, PROTOCOL_LATEST);
+ status = smbXcli_negprot(cli3->conn,
+ cli3->timeout,
+ PROTOCOL_SMB3_00,
+ PROTOCOL_LATEST,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
* and returns NT_STATUS_REQUEST_NOT_ACCEPTED,
* while it allows it on PROTOCOL_SMB2_10.
*/
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_10, PROTOCOL_SMB2_10);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_10,
+ PROTOCOL_SMB2_10,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
goto fail;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_02);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB2_02,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
goto fail;
return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_02);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB2_02,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
return false;
}
- status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_02);
+ status = smbXcli_negprot(cli->conn,
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB2_02,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli->conn,
- cli->timeout,
- PROTOCOL_SMB2_02,
- PROTOCOL_SMB3_11);
+ cli->timeout,
+ PROTOCOL_SMB2_02,
+ PROTOCOL_SMB3_11,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
disable_spnego = false;
- status = smbXcli_negprot(c_nt->conn, c_nt->timeout, PROTOCOL_CORE,
- PROTOCOL_NT1);
+ status = smbXcli_negprot(c_nt->conn,
+ c_nt->timeout,
+ PROTOCOL_CORE,
+ PROTOCOL_NT1,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("%s rejected the NT-error negprot (%s)\n", host,
disable_spnego = false;
force_dos_errors = false;
- status = smbXcli_negprot(c_dos->conn, c_dos->timeout, PROTOCOL_CORE,
- PROTOCOL_NT1);
+ status = smbXcli_negprot(c_dos->conn,
+ c_dos->timeout,
+ PROTOCOL_CORE,
+ PROTOCOL_NT1,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
printf("%s rejected the DOS-error negprot (%s)\n", host,
nt_errstr(status));
status = smbXcli_negprot(cli2->conn,
cli2->timeout,
runs[i].protocol,
- runs[i].protocol);
+ runs[i].protocol,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
goto out;
}
return false;
}
- status = smbXcli_negprot(conn, 0, PROTOCOL_NT1, PROTOCOL_NT1);
+ status = smbXcli_negprot(conn,
+ 0,
+ PROTOCOL_NT1,
+ PROTOCOL_NT1,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "smbXcli_negprot failed!\n");
return false;
return false;
}
- status = smbXcli_negprot(conn, 0, PROTOCOL_NT1, PROTOCOL_NT1);
+ status = smbXcli_negprot(conn,
+ 0,
+ PROTOCOL_NT1,
+ PROTOCOL_NT1,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "smbXcli_negprot failed!\n");
return false;
}
smbXcli_conn_set_sockopt(cli->conn, sockops);
- status = smbXcli_negprot(cli->conn, 0, PROTOCOL_NT1, PROTOCOL_NT1);
+ status = smbXcli_negprot(cli->conn,
+ 0,
+ PROTOCOL_NT1,
+ PROTOCOL_NT1,
+ NULL,
+ NULL,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "smbXcli_negprot failed %s!\n",
nt_errstr(status));
return false;
}
- status = smbXcli_negprot(conn, 0, PROTOCOL_CORE, PROTOCOL_CORE);
+ status = smbXcli_negprot(conn,
+ 0,
+ PROTOCOL_CORE,
+ PROTOCOL_CORE,
+ NULL,
+ NULL,
+ NULL);
if (NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "smbXcli_negprot succeeded!\n");
return false;