Changeset 745 for trunk/server/source3/smbd/smb2_negprot.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/smbd/smb2_negprot.c
r414 r745 20 20 21 21 #include "includes.h" 22 #include "smbd/smbd.h" 22 23 #include "smbd/globals.h" 23 24 #include "../libcli/smb/smb_common.h" … … 55 56 req->outbuf = NULL; 56 57 57 smbd_smb2_first_negprot( smbd_server_conn, smb2_inbuf, len);58 smbd_smb2_first_negprot(req->sconn, smb2_inbuf, len); 58 59 return; 59 60 } … … 78 79 uint32_t capabilities; 79 80 80 /* TODO: drop the connection with INVALI _PARAMETER */81 /* TODO: drop the connection with INVALID_PARAMETER */ 81 82 82 83 if (req->in.vector[i+1].iov_len != (expected_body_size & 0xFFFFFFFE)) { … … 120 121 121 122 /* negprot_spnego() returns a the server guid in the first 16 bytes */ 122 negprot_spnego_blob = negprot_spnego( );123 negprot_spnego_blob = negprot_spnego(req, req->sconn); 123 124 if (negprot_spnego_blob.data == NULL) { 124 125 return smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY); 125 126 } 126 talloc_steal(req, negprot_spnego_blob.data);127 127 128 128 if (negprot_spnego_blob.length < 16) { … … 165 165 SIVAL(outbody.data, 0x18, 166 166 capabilities); /* capabilities */ 167 SIVAL(outbody.data, 0x1C, 0x00010000); /* max transact size */168 SIVAL(outbody.data, 0x20, 0x00010000); /* max read size */169 SIVAL(outbody.data, 0x24, 0x00010000); /* max write size */167 SIVAL(outbody.data, 0x1C, lp_smb2_max_trans()); /* max transact size */ 168 SIVAL(outbody.data, 0x20, lp_smb2_max_read()); /* max read size */ 169 SIVAL(outbody.data, 0x24, lp_smb2_max_write()); /* max write size */ 170 170 SBVAL(outbody.data, 0x28, 0); /* system time */ 171 171 SBVAL(outbody.data, 0x30, 0); /* server start time */ … … 178 178 outdyn = security_buffer; 179 179 180 req->sconn->using_smb2 = true; 181 180 182 return smbd_smb2_request_done(req, outbody, &outdyn); 181 183 }
Note:
See TracChangeset
for help on using the changeset viewer.