00001 #ifndef chpretdef_h 00002 #define chpretdef_h 00003 00004 #define CHPRET_M_ACMODE 0x1 00005 #define CHPRET_M_MAC 0x2 00006 #define CHPRET_M_DAC 0x4 00007 #define CHPRET_M_MATCHED_ACE 0x8 00008 #define CHPRET_M_SOGW 0x10 00009 #define CHPRET_M_ACL_KEYID 0x20 00010 #define CHPRET_M_IVBUFLEN 0x40 00011 #define CHPRET_K_LENGTH 44 00012 #define CHPRET_C_LENGTH 44 00013 00014 struct _chpret { 00015 unsigned int chpret_l_auditlen; 00016 void *chpret_l_audit; 00017 void *chpret_l_auditret; 00018 unsigned int chpret_l_alarmlen; 00019 void *chpret_l_alarm; 00020 void *chpret_l_alarmret; 00021 unsigned int chpret_l_matched_acelen; 00022 void *chpret_l_matched_ace; 00023 void *chpret_l_matched_aceret; 00024 void *chpret_l_privs_used; 00025 union { 00026 unsigned int chpret_l_progress; 00027 struct { 00028 unsigned chpret_v_acmode : 1; 00029 unsigned chpret_v_mac : 1; 00030 unsigned chpret_v_dac : 1; 00031 unsigned chpret_v_matched_ace : 1; 00032 unsigned chpret_v_sogw : 1; 00033 unsigned chpret_v_acl_keyid : 1; 00034 unsigned chpret_v_ivbuflen : 1; 00035 unsigned chpret_v_fill_2_ : 1; 00036 }; 00037 }; 00038 }; 00039 00040 #endif 00041 00042