Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/smbd/smb2_negprot.c

    r414 r745  
    2020
    2121#include "includes.h"
     22#include "smbd/smbd.h"
    2223#include "smbd/globals.h"
    2324#include "../libcli/smb/smb_common.h"
     
    5556        req->outbuf = NULL;
    5657
    57         smbd_smb2_first_negprot(smbd_server_conn, smb2_inbuf, len);
     58        smbd_smb2_first_negprot(req->sconn, smb2_inbuf, len);
    5859        return;
    5960}
     
    7879        uint32_t capabilities;
    7980
    80 /* TODO: drop the connection with INVALI_PARAMETER */
     81/* TODO: drop the connection with INVALID_PARAMETER */
    8182
    8283        if (req->in.vector[i+1].iov_len != (expected_body_size & 0xFFFFFFFE)) {
     
    120121
    121122        /* 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);
    123124        if (negprot_spnego_blob.data == NULL) {
    124125                return smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY);
    125126        }
    126         talloc_steal(req, negprot_spnego_blob.data);
    127127
    128128        if (negprot_spnego_blob.length < 16) {
     
    165165        SIVAL(outbody.data, 0x18,
    166166              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 */
    170170        SBVAL(outbody.data, 0x28, 0);           /* system time */
    171171        SBVAL(outbody.data, 0x30, 0);           /* server start time */
     
    178178        outdyn = security_buffer;
    179179
     180        req->sconn->using_smb2 = true;
     181
    180182        return smbd_smb2_request_done(req, outbody, &outdyn);
    181183}
Note: See TracChangeset for help on using the changeset viewer.