r873: converted samba4 to use real 64 bit integers instead of
[kamenim/samba.git] / source4 / include / context.h
index 7b156ed38204e9590ec24ef2f2cab7855d8d4ae7..188f567e001822b9b67379905696b975966b03e8 100644 (file)
@@ -71,7 +71,7 @@ struct tcon_context {
        BOOL admin_user;
 
        /* the NTVFS operations - see source/ntvfs/ and include/ntvfs.h for details */
-       struct ntvfs_ops *ntvfs_ops;
+       const struct ntvfs_ops *ntvfs_ops;
 
        /* the reported filesystem type */
        char *fs_type;
@@ -114,6 +114,9 @@ struct request_context {
        /* how far through the chain of SMB commands have we gone? */
        unsigned chain_count;
 
+       /* the sequence number for signing */
+       uint64_t seq_num;
+
        /* the async structure allows backend functions to delay
           replying to requests. To use this, the front end must set
           async.send_fn to a function to be called by the backend
@@ -278,6 +281,9 @@ struct negotiate_context {
 
        /* client capabilities */
        uint32 client_caps;
+
+       /* the timezone we sent to the client */
+       int zone_offset;
 };
        
 /* this is the context for a SMB socket associated with the socket itself */
@@ -326,6 +332,13 @@ struct timers_context {
        time_t last_smb_conf_reload;
 };
 
+
+struct signing_context {
+       DATA_BLOB mac_key;
+       uint64_t next_seq_num;
+       enum smb_signing_state signing_state;
+};
+
 #include "smbd/process_model.h"
 
 /* smb context structure. This should contain all the state
@@ -352,6 +365,8 @@ struct server_context {
 
        struct dcesrv_context dcesrv;
 
+       struct signing_context signing;
+
        /* the pid of the process handling this session */
        pid_t pid;
        
@@ -359,7 +374,7 @@ struct server_context {
        struct event_context *events;
 
        /* process model specific operations */
-       struct model_ops *model_ops;
+       const struct model_ops *model_ops;
 };