Print this page
12513 SMB 3.1.1 support for server

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/smbsrv/libsmb/common/libsmb.h
          +++ new/usr/src/lib/smbsrv/libsmb/common/libsmb.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2019 Nexenta Systems, Inc.  All rights reserved.
       25 + * Copyright 2020 RackTop Systems, Inc.
  25   26   */
  26   27  
  27   28  #ifndef _LIBSMB_H
  28   29  #define _LIBSMB_H
  29   30  
  30   31  #ifdef  __cplusplus
  31   32  extern "C" {
  32   33  #endif
  33   34  
  34   35  #include <sys/types.h>
↓ open down ↓ 118 lines elided ↑ open up ↑
 153  154          SMB_CI_DISPOSITION,
 154  155          SMB_CI_DFS_STDROOT_NUM,
 155  156          SMB_CI_TRAVERSE_MOUNTS,
 156  157          SMB_CI_SMB2_ENABLE_OLD, /* obsolete */
 157  158          SMB_CI_INITIAL_CREDITS,
 158  159          SMB_CI_MAXIMUM_CREDITS,
 159  160          SMB_CI_MAX_PROTOCOL,
 160  161          SMB_CI_ENCRYPT,
 161  162          SMB_CI_MIN_PROTOCOL,
 162  163          SMB_CI_BYPASS_TRAVERSE_CHECKING,
      164 +        SMB_CI_ENCRYPT_CIPHER,
 163  165  
 164  166          SMB_CI_MAX
 165  167  } smb_cfg_id_t;
 166  168  
 167  169  /* SMF helper functions */
 168  170  extern smb_scfhandle_t *smb_smf_scf_init(char *);
 169  171  extern void smb_smf_scf_fini(smb_scfhandle_t *);
 170  172  extern int smb_smf_start_transaction(smb_scfhandle_t *);
 171  173  extern int smb_smf_end_transaction(smb_scfhandle_t *);
 172  174  extern int smb_smf_set_string_property(smb_scfhandle_t *, char *, char *);
↓ open down ↓ 41 lines elided ↑ open up ↑
 214  216  extern int smb_config_refresh_idmap(void);
 215  217  extern int smb_config_getip(smb_cfg_id_t, smb_inaddr_t *);
 216  218  extern void smb_config_get_version(smb_version_t *);
 217  219  uint32_t smb_config_get_execinfo(char *, char *, size_t);
 218  220  extern void smb_config_get_negtok(uchar_t *, uint32_t *);
 219  221  
 220  222  extern int smb_config_check_protocol(char *);
 221  223  extern uint32_t smb_config_get_max_protocol(void);
 222  224  extern uint32_t smb_config_get_min_protocol(void);
 223  225  extern void smb_config_upgrade(void);
      226 +extern uint16_t smb31_config_get_encrypt_cipher(void);
 224  227  
 225  228  extern smb_cfg_val_t smb_config_get_require(smb_cfg_id_t);
 226  229  
 227  230  extern void smb_load_kconfig(smb_kmod_cfg_t *kcfg);
 228  231  extern uint32_t smb_crc_gen(uint8_t *, size_t);
 229  232  
 230  233  extern boolean_t smb_match_netlogon_seqnum(void);
 231  234  extern int smb_setdomainprops(char *, char *, char *);
 232  235  extern void smb_update_netlogon_seqnum(void);
 233  236  
↓ open down ↓ 774 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX