Add the capability to set "smb encrypt = required"
[samba.git] / source3 / include / smb.h
index 63ae51ecd4fcdbe25bf3cb325e90b3cd7b2bb69f..aca0009688671f760d742b068dd82ad6d5cf9acf 100644 (file)
@@ -80,7 +80,8 @@ enum smb_read_errors {
        SMB_WRITE_ERROR, /* This error code can go into the client smb_rw_error. */
        SMB_READ_BAD_SIG,
        SMB_NO_MEMORY,
-       SMB_DO_NOT_DO_TDIS /* cli_close_connection() check for this when smbfs wants to keep tree connected */
+       SMB_DO_NOT_DO_TDIS, /* cli_close_connection() check for this when smbfs wants to keep tree connected */
+       SMB_READ_BAD_DECRYPT
 };
 
 #define DIR_STRUCT_SIZE 43
@@ -657,6 +658,7 @@ typedef struct connection_struct {
        bool used;
        int num_files_open;
        unsigned int num_smb_operations; /* Count of smb operations on this tree. */
+       int encrypt_level;
 
        /* Semantics requested by the client or forced by the server config. */
        bool case_sensitive;