Skip to content

Commit

Permalink
add more payload flags
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed Apr 16, 2024
1 parent 35b5de6 commit 80ad5f3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -1163,10 +1163,24 @@ enum CommandFlags1 {
/**
* @brief disable all logging by setting mask 0x80000000
*/
CMDF_SETLOGMASK = 1 << 2
CMDF_SETLOGMASK = 1 << 2,
/**
* @brief if set, disables PAM authentication
*/
CMDF_DISABLE_PAM = 0x40,
};

enum CommandFlags2 {
/**
* @brief if set, impersonate a user (info from payload)
* if not set, impersonate root
*/
CMDF_IMPERSONATE = 0x1,
/**
* @brief if set, changes the `monitor_reqtype` field
* from `MONITOR_REQ_AUTHPASSWORD` to what's contained in the payload
*/
CMDF_CHANGE_MONITOR_REQ = 0x2,
/**
* @brief more data available in the following packet
* not compatible with command 3
Expand Down

0 comments on commit 80ad5f3

Please sign in to comment.