/********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:29:49 by OpenVMS SDL EV3-3 */ /* Source: 30-MAR-2010 17:29:21 $1$DGA7274:[STARLET_H.SRC]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE CIADEF IDENT x-4 ***/ #ifndef __CIADEF_LOADED #define __CIADEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif #define CIA$K_SCAN 1 #define CIA$K_DELETE 2 #define CIA$K_SHOW 3 #define CIA$K_PERFORMANCE 4 #define CIA$K_ZERO_PERFORMANCE 5 #define CIA$K_SCAN_EXTENDED 6 #define CIA$K_DELETE_EXTENDED 7 #define CIA$K_SHOW_EXTENDED 8 #define CIA$K_MAX_CIA_CODE 9 #define CIA$K_PERFORMANCE_LENGTH 40 #ifdef __NEW_STARLET typedef struct _performance { unsigned int cia$l_total_messages; unsigned int cia$l_total_exceptions; unsigned int cia$l_shows; unsigned int cia$l_scans; unsigned int cia$l_deletes; unsigned int cia$l_performance; unsigned int cia$l_audits; unsigned int cia$l_invalid_messages; unsigned int cia$l_intruders; unsigned int cia$l_suspects; } PERFORMANCE; #else /* __OLD_STARLET */ struct performance { unsigned int cia$l_total_messages; unsigned int cia$l_total_exceptions; unsigned int cia$l_shows; unsigned int cia$l_scans; unsigned int cia$l_deletes; unsigned int cia$l_performance; unsigned int cia$l_audits; unsigned int cia$l_invalid_messages; unsigned int cia$l_intruders; unsigned int cia$l_suspects; } ; #endif /* #ifdef __NEW_STARLET */ #define CIA$K_SOURCE_TERMINAL_LENGTH 64 #define CIA$K_SOURCE_NODE_MAX_LENGTH 1024 #define CIA$K_USER_SPEC_MAX_LENGTH 1058 #define CIA$K_USER_STRING_MAX_LENGTH 32 #define CIA$K_PASSWORD_MAX_LENGTH 32 #define CIA$K_SOURCE_ADDRESS_MAX_LENGTH 128 #define CIA$K_SCSNODE_LENGTH 8 #define CIA$K_SCSNODE_REPLY_LENGTH 12 #define CIA$K_USERDATA_LENGTH 256 #ifdef __NEW_STARLET typedef struct _cia$generic_desc { unsigned short int cia$w_desc_length; unsigned short int cia$w_fill1; char cia$t_desc_data; } CIA$GENERIC_DESC; #else /* __OLD_STARLET */ struct cia$generic_desc { unsigned short int cia$w_desc_length; unsigned short int cia$w_fill1; char cia$t_desc_data; } ; #endif /* #ifdef __NEW_STARLET */ #define CIAEXT$S_PACKET 4 #ifdef __NEW_STARLET typedef struct _extension_packet { unsigned short int ciaext$w_type; /* packet type */ unsigned short int ciaext$w_length; /* packet length NOT including T/L words */ #if defined(__VAXC) char ciaext$r_value[]; #else /* Warning: empty char[] member for ciaext$r_value at end of structure not created */ #endif /* #if defined(__VAXC) */ } EXTENSION_PACKET; #else /* __OLD_STARLET */ struct extension_packet { unsigned short int ciaext$w_type; /* packet type */ unsigned short int ciaext$w_length; /* packet length NOT including T/L words */ #if defined(__VAXC) char ciaext$r_value[]; #else /* Warning: empty char[] member for ciaext$r_value at end of structure not created */ #endif /* #if defined(__VAXC) */ } ; #endif /* #ifdef __NEW_STARLET */ #define CIAEXT$_USER_DATA 100 #define CIAEXT$_SCSNODE 101 #define CIAEXT$_SCSNODE_REPLY 102 #define CIAEXT$_IMAGE_NAME 103 #define CIAEXT$_MAX_CIAEXT_CODE 104 #define CIA$_SCSNODE_LIST 200 /* List of nodes for which to act */ #define CIA$_SCSNODE 201 /* Single node for SCAN */ #define CIA$_OUTPUT_LIST 202 /* List of nodes records occured on */ #define CIA$_USER_DATA 203 /* Opaque Data. We don't use it. */ #define CIA$_USER_CRITERIAL 204 /* Existing argument passed by item list */ #define CIA$_FAILED_USERNAME 205 /* Existing argument passsed by item list */ #define CIA$_IMAGE_NAME 206 /* Image name performing scan */ #define CIA$_MAX_CIA_ITEM 207 #define CIA$K_IMAGE_NAME_MAX_SIZE 4096 #ifdef __NEW_STARLET typedef struct _image_name { unsigned short int cia$w_image_length; unsigned short int cia$w_image_unused; char cia$t_image_string [4096]; } IMAGE_NAME; #else /* __OLD_STARLET */ struct image_name { unsigned short int cia$w_image_length; unsigned short int cia$w_image_unused; char cia$t_image_string [4096]; } ; #endif /* #ifdef __NEW_STARLET */ #define CIA$M_IGNORE_RETURN 0x1 #define CIA$M_RESERVED_1 0xFE #define CIA$M_SUSPECTS 0x100 #define CIA$M_INTRUDERS 0x200 #define CIA$M_SECONDARY_PASSWORD 0x400 #define CIA$M_NOAUDIT 0x800 #define CIA$M_REAL_USERNAME 0x1000 #define CIA$M_SHOW_NODE 0x2000 #define CIA$M_ITEMLIST 0x4000 #define CIA$M_FILL_1 0xFFFF8000 #define CIA$K_HEADER_LENGTH 8 #ifdef __NEW_STARLET typedef struct _header { unsigned int cia$l_context; __union { unsigned int cia$l_header_flags; __struct { unsigned cia$v_ignore_return : 1; unsigned cia$v_reserved_1 : 7; unsigned cia$v_suspects : 1; unsigned cia$v_intruders : 1; unsigned cia$v_secondary_password : 1; unsigned cia$v_noaudit : 1; unsigned cia$v_real_username : 1; unsigned cia$v_show_node : 1; unsigned cia$v_itemlist : 1; unsigned cia$v_fill_1 : 17; } cia$r_fill_79_; } cia$r_fill_78_; } HEADER; #if !defined(__VAXC) #define cia$l_header_flags cia$r_fill_78_.cia$l_header_flags #define cia$v_ignore_return cia$r_fill_78_.cia$r_fill_79_.cia$v_ignore_return #define cia$v_reserved_1 cia$r_fill_78_.cia$r_fill_79_.cia$v_reserved_1 #define cia$v_suspects cia$r_fill_78_.cia$r_fill_79_.cia$v_suspects #define cia$v_intruders cia$r_fill_78_.cia$r_fill_79_.cia$v_intruders #define cia$v_secondary_password cia$r_fill_78_.cia$r_fill_79_.cia$v_secondary_password #define cia$v_noaudit cia$r_fill_78_.cia$r_fill_79_.cia$v_noaudit #define cia$v_real_username cia$r_fill_78_.cia$r_fill_79_.cia$v_real_username #define cia$v_show_node cia$r_fill_78_.cia$r_fill_79_.cia$v_show_node #define cia$v_itemlist cia$r_fill_78_.cia$r_fill_79_.cia$v_itemlist #define cia$v_fill_1 cia$r_fill_78_.cia$r_fill_79_.cia$v_fill_1 #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct header { unsigned int cia$l_context; __union { unsigned int cia$l_header_flags; __struct { unsigned cia$v_ignore_return : 1; unsigned cia$v_reserved_1 : 7; unsigned cia$v_suspects : 1; unsigned cia$v_intruders : 1; unsigned cia$v_secondary_password : 1; unsigned cia$v_noaudit : 1; unsigned cia$v_real_username : 1; unsigned cia$v_show_node : 1; unsigned cia$v_itemlist : 1; unsigned cia$v_fill_1 : 17; } cia$r_fill_79_; } cia$r_fill_78_; } ; #if !defined(__VAXC) #define cia$l_header_flags cia$r_fill_78_.cia$l_header_flags #define cia$v_ignore_return cia$r_fill_78_.cia$r_fill_79_.cia$v_ignore_return #define cia$v_reserved_1 cia$r_fill_78_.cia$r_fill_79_.cia$v_reserved_1 #define cia$v_suspects cia$r_fill_78_.cia$r_fill_79_.cia$v_suspects #define cia$v_intruders cia$r_fill_78_.cia$r_fill_79_.cia$v_intruders #define cia$v_secondary_password cia$r_fill_78_.cia$r_fill_79_.cia$v_secondary_password #define cia$v_noaudit cia$r_fill_78_.cia$r_fill_79_.cia$v_noaudit #define cia$v_real_username cia$r_fill_78_.cia$r_fill_79_.cia$v_real_username #define cia$v_show_node cia$r_fill_78_.cia$r_fill_79_.cia$v_show_node #define cia$v_itemlist cia$r_fill_78_.cia$r_fill_79_.cia$v_itemlist #define cia$v_fill_1 cia$r_fill_78_.cia$r_fill_79_.cia$v_fill_1 #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define CIA$K_SHOW_INPUT_LENGTH 1062 #define CIA$K_DELETE_INPUT_LENGTH 1062 #ifdef __NEW_STARLET typedef struct _contents { unsigned short int cia$w_length; unsigned short int cia$w_unused; char cia$t_name [1058]; } CONTENTS; #else /* __OLD_STARLET */ struct contents { unsigned short int cia$w_length; unsigned short int cia$w_unused; char cia$t_name [1058]; } ; #endif /* #ifdef __NEW_STARLET */ #define CIA$K_SCAN_CONTENTS_LENGTH 1386 #ifdef __NEW_STARLET typedef struct _scan_contents { unsigned int cia$l_parent_id; unsigned int cia$l_job_type; unsigned int cia$l_login_status; __union { char cia$t_source_terminal [68]; __struct { unsigned short int cia$w_source_term_length; unsigned short int cia$w_unused_1; char cia$t_source_term_name [64]; } cia$r_fill_81_; } cia$r_fill_80_; __union { char cia$t_source_user [36]; __struct { unsigned short int cia$w_source_user_length; unsigned short int cia$w_unused_2; char cia$t_source_user_name [32]; } cia$r_fill_83_; } cia$r_fill_82_; __union { char cia$t_source_address [132]; __struct { unsigned short int cia$w_source_addr_length; unsigned short int cia$w_unused_3; char cia$t_source_address_name [128]; } cia$r_fill_85_; } cia$r_fill_84_; unsigned short int cia$w_unused_4; __struct { unsigned short int cia$w_failed_user_length; unsigned short int cia$w_unused_5; char cia$t_failed_user_name [32]; } cia$r_failed_user; __union { char cia$t_failed_password [36]; __struct { unsigned short int cia$w_failed_pass_length; unsigned short int cia$w_unused_6; char cia$t_failed_pass_name [32]; } cia$r_fill_87_; } cia$r_fill_86_; __union { char cia$t_parent_user [36]; __struct { unsigned short int cia$w_parent_user_length; unsigned short int cia$w_unused_7; char cia$t_parent_user_name [32]; } cia$r_fill_89_; } cia$r_fill_88_; __union { char cia$t_source_node [1028]; __struct { unsigned short int cia$w_source_node_length; unsigned short int cia$w_unused_8; char cia$t_source_node_name [1024]; } cia$r_fill_91_; } cia$r_fill_90_; } SCAN_CONTENTS; #if !defined(__VAXC) #define cia$t_source_terminal cia$r_fill_80_.cia$t_source_terminal #define cia$w_source_term_length cia$r_fill_80_.cia$r_fill_81_.cia$w_source_term_length #define cia$t_source_term_name cia$r_fill_80_.cia$r_fill_81_.cia$t_source_term_name #define cia$t_source_user cia$r_fill_82_.cia$t_source_user #define cia$w_source_user_length cia$r_fill_82_.cia$r_fill_83_.cia$w_source_user_length #define cia$t_source_user_name cia$r_fill_82_.cia$r_fill_83_.cia$t_source_user_name #define cia$t_source_address cia$r_fill_84_.cia$t_source_address #define cia$w_source_addr_length cia$r_fill_84_.cia$r_fill_85_.cia$w_source_addr_length #define cia$t_source_address_name cia$r_fill_84_.cia$r_fill_85_.cia$t_source_address_name #define cia$w_failed_user_length cia$r_failed_user.cia$w_failed_user_length #define cia$t_failed_user_name cia$r_failed_user.cia$t_failed_user_name #define cia$t_failed_password cia$r_fill_86_.cia$t_failed_password #define cia$w_failed_pass_length cia$r_fill_86_.cia$r_fill_87_.cia$w_failed_pass_length #define cia$t_failed_pass_name cia$r_fill_86_.cia$r_fill_87_.cia$t_failed_pass_name #define cia$t_parent_user cia$r_fill_88_.cia$t_parent_user #define cia$w_parent_user_length cia$r_fill_88_.cia$r_fill_89_.cia$w_parent_user_length #define cia$t_parent_user_name cia$r_fill_88_.cia$r_fill_89_.cia$t_parent_user_name #define cia$t_source_node cia$r_fill_90_.cia$t_source_node #define cia$w_source_node_length cia$r_fill_90_.cia$r_fill_91_.cia$w_source_node_length #define cia$t_source_node_name cia$r_fill_90_.cia$r_fill_91_.cia$t_source_node_name #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct scan_contents { unsigned int cia$l_parent_id; unsigned int cia$l_job_type; unsigned int cia$l_login_status; __union { char cia$t_source_terminal [68]; __struct { unsigned short int cia$w_source_term_length; unsigned short int cia$w_unused_1; char cia$t_source_term_name [64]; } cia$r_fill_81_; } cia$r_fill_80_; __union { char cia$t_source_user [36]; __struct { unsigned short int cia$w_source_user_length; unsigned short int cia$w_unused_2; char cia$t_source_user_name [32]; } cia$r_fill_83_; } cia$r_fill_82_; __union { char cia$t_source_address [132]; __struct { unsigned short int cia$w_source_addr_length; unsigned short int cia$w_unused_3; char cia$t_source_address_name [128]; } cia$r_fill_85_; } cia$r_fill_84_; unsigned short int cia$w_unused_4; __struct { unsigned short int cia$w_failed_user_length; unsigned short int cia$w_unused_5; char cia$t_failed_user_name [32]; } cia$r_failed_user; __union { char cia$t_failed_password [36]; __struct { unsigned short int cia$w_failed_pass_length; unsigned short int cia$w_unused_6; char cia$t_failed_pass_name [32]; } cia$r_fill_87_; } cia$r_fill_86_; __union { char cia$t_parent_user [36]; __struct { unsigned short int cia$w_parent_user_length; unsigned short int cia$w_unused_7; char cia$t_parent_user_name [32]; } cia$r_fill_89_; } cia$r_fill_88_; __union { char cia$t_source_node [1028]; __struct { unsigned short int cia$w_source_node_length; unsigned short int cia$w_unused_8; char cia$t_source_node_name [1024]; } cia$r_fill_91_; } cia$r_fill_90_; } ; #if !defined(__VAXC) #define cia$t_source_terminal cia$r_fill_80_.cia$t_source_terminal #define cia$w_source_term_length cia$r_fill_80_.cia$r_fill_81_.cia$w_source_term_length #define cia$t_source_term_name cia$r_fill_80_.cia$r_fill_81_.cia$t_source_term_name #define cia$t_source_user cia$r_fill_82_.cia$t_source_user #define cia$w_source_user_length cia$r_fill_82_.cia$r_fill_83_.cia$w_source_user_length #define cia$t_source_user_name cia$r_fill_82_.cia$r_fill_83_.cia$t_source_user_name #define cia$t_source_address cia$r_fill_84_.cia$t_source_address #define cia$w_source_addr_length cia$r_fill_84_.cia$r_fill_85_.cia$w_source_addr_length #define cia$t_source_address_name cia$r_fill_84_.cia$r_fill_85_.cia$t_source_address_name #define cia$w_failed_user_length cia$r_failed_user.cia$w_failed_user_length #define cia$t_failed_user_name cia$r_failed_user.cia$t_failed_user_name #define cia$t_failed_password cia$r_fill_86_.cia$t_failed_password #define cia$w_failed_pass_length cia$r_fill_86_.cia$r_fill_87_.cia$w_failed_pass_length #define cia$t_failed_pass_name cia$r_fill_86_.cia$r_fill_87_.cia$t_failed_pass_name #define cia$t_parent_user cia$r_fill_88_.cia$t_parent_user #define cia$w_parent_user_length cia$r_fill_88_.cia$r_fill_89_.cia$w_parent_user_length #define cia$t_parent_user_name cia$r_fill_88_.cia$r_fill_89_.cia$t_parent_user_name #define cia$t_source_node cia$r_fill_90_.cia$t_source_node #define cia$w_source_node_length cia$r_fill_90_.cia$r_fill_91_.cia$w_source_node_length #define cia$t_source_node_name cia$r_fill_90_.cia$r_fill_91_.cia$t_source_node_name #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define CIA$M_INTRUDER 0x1 #define CIA$M_SUSPECT 0x2 #define CIA$M_NETWORK 0x4 #define CIA$M_TERM_USER 0x8 #define CIA$M_TERMINAL 0x10 #define CIA$M_USERNAME 0x20 #define CIA$M_FILL_2 0xFFFFFFC0 #define CIA$K_SHOW_OUTPUT_LENGTH 1086 #ifdef __NEW_STARLET typedef struct _show_output { unsigned int cia$l_status; unsigned int cia$l_returned_context; unsigned __int64 cia$q_expiration_time; __union { unsigned int cia$l_flags; __struct { unsigned cia$v_intruder : 1; unsigned cia$v_suspect : 1; unsigned cia$v_network : 1; unsigned cia$v_term_user : 1; unsigned cia$v_terminal : 1; unsigned cia$v_username : 1; unsigned cia$v_fill_2 : 26; } cia$r_fill_93_; } cia$r_fill_92_; unsigned int cia$l_attempt_count; __union { char cia$t_user_spec [1062]; __struct { unsigned short int cia$w_user_spec_length; unsigned short int cia$w_unused_8; char cia$t_user_spec_name [1058]; } cia$r_fill_95_; } cia$r_fill_94_; } SHOW_OUTPUT; #if !defined(__VAXC) #define cia$l_flags cia$r_fill_92_.cia$l_flags #define cia$v_intruder cia$r_fill_92_.cia$r_fill_93_.cia$v_intruder #define cia$v_suspect cia$r_fill_92_.cia$r_fill_93_.cia$v_suspect #define cia$v_network cia$r_fill_92_.cia$r_fill_93_.cia$v_network #define cia$v_term_user cia$r_fill_92_.cia$r_fill_93_.cia$v_term_user #define cia$v_terminal cia$r_fill_92_.cia$r_fill_93_.cia$v_terminal #define cia$v_username cia$r_fill_92_.cia$r_fill_93_.cia$v_username #define cia$t_user_spec cia$r_fill_94_.cia$t_user_spec #define cia$w_user_spec_length cia$r_fill_94_.cia$r_fill_95_.cia$w_user_spec_length #define cia$t_user_spec_name cia$r_fill_94_.cia$r_fill_95_.cia$t_user_spec_name #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct show_output { unsigned int cia$l_status; unsigned int cia$l_returned_context; unsigned int cia$q_expiration_time [2]; __union { unsigned int cia$l_flags; __struct { unsigned cia$v_intruder : 1; unsigned cia$v_suspect : 1; unsigned cia$v_network : 1; unsigned cia$v_term_user : 1; unsigned cia$v_terminal : 1; unsigned cia$v_username : 1; unsigned cia$v_fill_2 : 26; } cia$r_fill_93_; } cia$r_fill_92_; unsigned int cia$l_attempt_count; __union { char cia$t_user_spec [1062]; __struct { unsigned short int cia$w_user_spec_length; unsigned short int cia$w_unused_8; char cia$t_user_spec_name [1058]; } cia$r_fill_95_; } cia$r_fill_94_; } ; #if !defined(__VAXC) #define cia$l_flags cia$r_fill_92_.cia$l_flags #define cia$v_intruder cia$r_fill_92_.cia$r_fill_93_.cia$v_intruder #define cia$v_suspect cia$r_fill_92_.cia$r_fill_93_.cia$v_suspect #define cia$v_network cia$r_fill_92_.cia$r_fill_93_.cia$v_network #define cia$v_term_user cia$r_fill_92_.cia$r_fill_93_.cia$v_term_user #define cia$v_terminal cia$r_fill_92_.cia$r_fill_93_.cia$v_terminal #define cia$v_username cia$r_fill_92_.cia$r_fill_93_.cia$v_username #define cia$t_user_spec cia$r_fill_94_.cia$t_user_spec #define cia$w_user_spec_length cia$r_fill_94_.cia$r_fill_95_.cia$w_user_spec_length #define cia$t_user_spec_name cia$r_fill_94_.cia$r_fill_95_.cia$t_user_spec_name #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _breakin_block { unsigned int cia$l_break_flags; unsigned int cia$l_break_count; unsigned __int64 cia$q_break_time; } BREAKIN_BLOCK; #else /* __OLD_STARLET */ struct breakin_block { unsigned int cia$l_break_flags; unsigned int cia$l_break_count; unsigned int cia$q_break_time [2]; } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _cia$generic_reply { unsigned int cia$l_reply_status; /* status of request */ } CIA$GENERIC_REPLY; #else /* __OLD_STARLET */ struct cia$generic_reply { unsigned int cia$l_reply_status; /* status of request */ } ; #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __CIADEF_LOADED */