- Timestamp:
- Jul 26, 2016, 11:55:04 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-3.0/src/smbwrp.c
r933 r936 285 285 } 286 286 287 protocol = smbXcli_conn_protocol(c->conn); 288 289 switch (protocol) { 290 case PROTOCOL_CORE: 291 name = "CORE"; 292 break; 293 case PROTOCOL_COREPLUS: 294 name = "COREPLUS"; 295 break; 296 case PROTOCOL_LANMAN1: 297 name = "LANMAN1"; 298 break; 299 case PROTOCOL_LANMAN2: 300 name = "LANMAN2"; 301 break; 302 case PROTOCOL_NT1: 303 name = "NT1"; 304 break; 305 case PROTOCOL_SMB2_02: 306 name = "SMB2_02"; 307 break; 308 case PROTOCOL_SMB2_10: 309 name = "SMB2_10"; 310 break; 311 case PROTOCOL_SMB2_22: 312 name = "SMB2_22"; 313 break; 314 case PROTOCOL_SMB2_24: 315 name = "SMB2_24"; 316 break; 317 case PROTOCOL_SMB3_00: 318 name = "SMB3_00"; 319 break; 320 case PROTOCOL_SMB3_02: 321 name = "SMB3_02"; 322 break; 323 case PROTOCOL_SMB3_10: 324 name = "SMB3_10"; 325 break; 326 case PROTOCOL_SMB3_11: 327 name = "SMB3_11"; 328 break; 329 default: 330 name = "Unknown"; 331 break; 332 } 333 334 debuglocal(4,"Server supports %s protocol\n", name); 335 336 if (smbXcli_conn_protocol(c->conn) >= PROTOCOL_SMB2_02) { 337 /* Ensure we ask for some initial credits. */ 338 smb2cli_conn_set_max_credits(c->conn, DEFAULT_SMB2_MAX_CREDITS); 339 } 340 287 341 if (!NT_STATUS_IS_OK(cli_session_setup(c, srv->username, 288 342 srv->password, strlen(srv->password),
Note:
See TracChangeset
for help on using the changeset viewer.