Print this page
12513 SMB 3.1.1 support for server

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/smbsrv/smb2_kproto.h
          +++ new/usr/src/uts/common/smbsrv/smb2_kproto.h
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13   13   * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
       14 + * Copyright 2020 RackTop Systems, Inc.
  14   15   */
  15   16  
  16   17  #ifndef _SMB2_KPROTO_H_
  17   18  #define _SMB2_KPROTO_H_
  18   19  
  19   20  #include <smbsrv/smb_kproto.h>
  20   21  #include <smbsrv/smb2.h>
  21   22  
  22   23  #ifdef  __cplusplus
  23   24  extern "C" {
↓ open down ↓ 32 lines elided ↑ open up ↑
  56   57  void smb2_send_reply(smb_request_t *);
  57   58  void smb2sr_put_error(smb_request_t *, uint32_t);
  58   59  void smb2sr_put_error_data(smb_request_t *, uint32_t, mbuf_chain_t *);
  59   60  void smb2sr_put_errno(struct smb_request *, int);
  60   61  uint32_t smb2sr_lookup_fid(smb_request_t *, smb2fid_t *);
  61   62  
  62   63  /* SMB2 signing routines - smb2_signing.c */
  63   64  int smb2_sign_check_request(smb_request_t *);
  64   65  void smb2_sign_reply(smb_request_t *);
  65   66  void smb2_sign_init_mech(smb_session_t *);
       67 +void smb31_preauth_init_mech(smb_session_t *);
       68 +void smb31_preauth_fini(smb_session_t *s);
       69 +int smb31_preauth_sha512_calc(smb_request_t *, struct mbuf_chain *,
       70 +    uint8_t *);
  66   71  
  67   72  int smb3_encrypt_sr(smb_request_t *, struct mbuf_chain *, struct mbuf_chain *);
  68   73  int smb3_decrypt_sr(smb_request_t *);
  69   74  int smb3_encrypt_init_mech(smb_session_t *s);
  70   75  
  71   76  uint32_t smb2_fsctl_fs(smb_request_t *, smb_fsctl_t *);
  72   77  uint32_t smb2_fsctl_netfs(smb_request_t *, smb_fsctl_t *);
  73   78  uint32_t smb2_fsctl_copychunk(smb_request_t *, smb_fsctl_t *);
  74   79  uint32_t smb2_fsctl_odx_read(smb_request_t *, smb_fsctl_t *);
  75   80  uint32_t smb2_fsctl_odx_write(smb_request_t *, smb_fsctl_t *);
↓ open down ↓ 85 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX