Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/include/libsmb_internal.h

    r740 r988  
    1 /* 
     1/*
    22   Unix SMB/Netbios implementation.
    33   SMB client library implementation
     
    55   Copyright (C) Richard Sharpe 2000, 2002
    66   Copyright (C) John Terpstra 2000
    7    Copyright (C) Tom Jansen (Ninja ISD) 2002 
     7   Copyright (C) Tom Jansen (Ninja ISD) 2002
    88   Copyright (C) Derrell Lipman 2003-2008
    99   Copyright (C) Jeremy Allison 2007, 2008
    10    
     10
    1111   This program is free software; you can redistribute it and/or modify
    1212   it under the terms of the GNU General Public License as published by
    1313   the Free Software Foundation; either version 3 of the License, or
    1414   (at your option) any later version.
    15    
     15
    1616   This program is distributed in the hope that it will be useful,
    1717   but WITHOUT ANY WARRANTY; without even the implied warranty of
    1818   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1919   GNU General Public License for more details.
    20    
     20
    2121   You should have received a copy of the GNU General Public License
    2222   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     
    4141typedef struct DOS_ATTR_DESC {
    4242        int mode;
    43         SMB_OFF_T size;
     43        size;
    4444        time_t create_time;
    4545        time_t access_time;
     
    4949} DOS_ATTR_DESC;
    5050
     51
     52
     53
     54
    5155
    5256/*
     
    7579        bool no_pathinfo;
    7680        bool no_pathinfo2;
     81
    7782        bool no_nt_session;
    7883        struct policy_handle pol;
     84
    7985
    8086        SMBCSRV *next, *prev;
    81        
    8287};
    8388
    84 /* 
    85  * Keep directory entries in a list 
     89/*
     90 * Keep directory entries in a list
    8691 */
    8792struct smbc_dir_list {
     
    9398/*
    9499 * Structure for open file management
    95  */ 
     100 */
    96101struct _SMBCFILE {
    97         int cli_fd;
     102        int cli_fd;
     103        /*
     104         * cache of cli_state we opened cli_fd on.
     105         * Due to DFS can be a subsidiary connection to srv->cli
     106         */
     107        struct cli_state *targetcli;
    98108        char *fname;
    99         SMB_OFF_T offset;
     109        offset;
    100110        struct _SMBCSRV *srv;
    101111        bool file;
     
    133143         */
    134144        SMBCSRV *                               servers;
    135        
     145
    136146        /*
    137147         * open file/dir list
     
    167177
    168178        /*
    169          * Should we attempt UNIX smb encryption ? 
     179         * Should we attempt UNIX smb encryption ?
    170180         * Set to 0 if we should never attempt, set to 1 if
    171181         * encryption requested, set to 2 if encryption required.
     
    234244#endif
    235245
    236 #if 0 /* None available yet */
    237246        /* SMB high-level functions */
    238247        struct
    239248        {
     249
     250
    240251        }               smb;
    241252
    242 #endif
     253        uint16_t        port;
    243254};     
    244255
     
    248259                       SMBCSRV * newsrv,
    249260                       const char * server,
    250                        const char * share, 
     261                       const char * share,
    251262                       const char * workgroup,
    252263                       const char * username);
     
    254265SMBCSRV *
    255266SMBC_get_cached_server(SMBCCTX * context,
    256                        const char * server, 
     267                       const char * server,
    257268                       const char * share,
    258269                       const char * workgroup,
     
    331342int
    332343SMBC_rename_ctx(SMBCCTX *ocontext,
    333                 const char *oname, 
     344                const char *oname,
    334345                SMBCCTX *ncontext,
    335346                const char *nname);
     347
     348
     349
     350
     351
     352
    336353
    337354
     
    360377               size_t count);
    361378
     379
     380
     381
     382
     383
     384
     385
     386
    362387int
    363388SMBC_close_ctx(SMBCCTX *context,
     
    367392SMBC_getatr(SMBCCTX * context,
    368393            SMBCSRV *srv,
    369             char *path,
    370             uint16 *mode,
    371             SMB_OFF_T *size,
     394            char *path,
     395            uint16 *mode,
     396            *size,
    372397            struct timespec *create_time_ts,
    373398            struct timespec *access_time_ts,
     
    377402
    378403bool
    379 SMBC_setatr(SMBCCTX * context, SMBCSRV *srv, char *path, 
     404SMBC_setatr(SMBCCTX * context, SMBCSRV *srv, char *path,
    380405            time_t create_time,
    381406            time_t access_time,
    382407            time_t write_time,
    383408            time_t change_time,
    384             uint16 mode);
     409            uint16 mode);
    385410
    386411off_t
     
    412437                char **pp_workgroup,
    413438                char **pp_server,
     439
    414440                char **pp_share,
    415441                char **pp_path,
     
    449475SMBC_remove_unused_server(SMBCCTX * context,
    450476                          SMBCSRV * srv);
    451 
    452 void
    453 SMBC_call_auth_fn(TALLOC_CTX *ctx,
    454                   SMBCCTX *context,
    455                   const char *server,
    456                   const char *share,
    457                   char **pp_workgroup,
    458                   char **pp_username,
    459                   char **pp_password);
    460477
    461478void
     
    479496            bool connect_if_not_found,
    480497            const char *server,
     498
    481499            const char *share,
    482500            char **pp_workgroup,
     
    488506                 SMBCCTX *context,
    489507                 const char *server,
     508
    490509                 const char *share,
    491510                 char **pp_workgroup,
Note: See TracChangeset for help on using the changeset viewer.