[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[samba.git] / source / include / ntdomain.h
index fd36006c0b7176fa8d854c2e97234cd44d8995b3..6ce0ef646467756ef73e0aef71c10d5d8b7130f2 100644 (file)
@@ -8,7 +8,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -17,8 +17,7 @@
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #ifndef _NT_DOMAIN_H /* _NT_DOMAIN_H */
@@ -140,8 +139,8 @@ struct dcinfo {
        DOM_CHAL clnt_chal; /* Client credential */
        DOM_CHAL srv_chal;  /* Server credential */
  
-       uchar  sess_key[8]; /* Session key */
-       uchar  mach_pw[16];   /* md4(machine password) */
+       unsigned char  sess_key[16]; /* Session key - 8 bytes followed by 8 zero bytes */
+       unsigned char  mach_pw[16];   /* md4(machine password) */
 
        fstring mach_acct;  /* Machine name we've authenticated. */
 
@@ -187,7 +186,7 @@ struct kerberos_auth_struct {
 
 /* auth state for schannel. */
 struct schannel_auth_struct {
-       uchar sess_key[16];
+       unsigned char sess_key[16];
        uint32 seq_num;
 };
 
@@ -265,6 +264,12 @@ typedef struct pipes_struct {
         */
 
        BOOL bad_handle_fault_state;
+
+       /*
+        * Set to true when the backend does not support a call.
+        */
+
+       BOOL rng_fault_state;
        
        /*
         * Set to RPC_BIG_ENDIAN when dealing with big-endian PDU's
@@ -284,7 +289,7 @@ typedef struct pipes_struct {
 
        output_data out_data;
 
-       /* This context is used for PUD data and is freed between each pdu.
+       /* This context is used for PDU data and is freed between each pdu.
                Don't use for pipe state storage. */
        TALLOC_CTX *mem_ctx;
 
@@ -324,7 +329,7 @@ typedef struct smb_np_struct {
         * returns: state information representing the connection.
         *          is stored in np_state, above.
         */
-       void *   (*namedpipe_create)(char *pipe_name, 
+       void *   (*namedpipe_create)(const char *pipe_name, 
                                          connection_struct *conn, uint16 vuid);
 
        /* call to perform a write / read namedpipe transaction.