Print this page
12513 SMB 3.1.1 support for server

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbsrv/smb_session.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_session.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright 2019 Nexenta Systems, Inc.  All rights reserved.
       24 + * Copyright 2020 RackTop Systems, Inc.
  24   25   */
  25   26  
  26   27  #include <sys/atomic.h>
  27   28  #include <sys/synch.h>
  28   29  #include <sys/types.h>
  29   30  #include <sys/sdt.h>
  30   31  #include <sys/random.h>
  31   32  #include <smbsrv/netbios.h>
  32   33  #include <smbsrv/smb2_kproto.h>
  33   34  #include <smbsrv/string.h>
↓ open down ↓ 815 lines elided ↑ open up ↑
 849  850          if (session->enc_mech != NULL)
 850  851                  smb3_encrypt_fini(session);
 851  852  
 852  853          if (session->sign_fini != NULL)
 853  854                  session->sign_fini(session);
 854  855  
 855  856          if (session->signing.mackey != NULL) {
 856  857                  kmem_free(session->signing.mackey,
 857  858                      session->signing.mackey_len);
 858  859          }
      860 +
      861 +        if (session->preauth_mech != NULL)
      862 +                smb31_preauth_fini(session);
 859  863  
 860  864          session->s_magic = 0;
 861  865  
 862  866          smb_rwx_destroy(&session->s_lock);
 863  867          smb_net_txl_destructor(&session->s_txlst);
 864  868  
 865  869          mutex_destroy(&session->s_credits_mutex);
 866  870  
 867  871          smb_slist_destructor(&session->s_req_list);
 868  872          smb_llist_destructor(&session->s_tree_list);
↓ open down ↓ 631 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX