Changeset 22 for trunk/include
- Timestamp:
- Feb 23, 2006, 12:03:58 AM (19 years ago)
- Location:
- trunk/include
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r20 r22 290 290 /*@null@*/ extern sh_key_t *skey; 291 291 292 /************************************************** 293 * 294 * macros 295 * 296 **************************************************/ 297 298 /* signal-safe log function 299 */ 300 int safe_logger (int signal, int method, char * details); 301 int safe_fatal (int signal, int method, char * details, char *f, int l); 302 303 #define SH_VAL_EQ(a,b) \ 304 do { \ 305 if ((a) != (b)) safe_fatal(0, 0, #a " != " #b, FIL__, __LINE__);\ 306 } while (0) 307 292 308 293 309 #if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK) -
trunk/include/sh_calls.h
r20 r22 33 33 /* Set aud functions 34 34 */ 35 int sh_aud_set_functions(c har * str_s);35 int sh_aud_set_functions(const char * str_s); 36 36 37 37 -
trunk/include/sh_database.h
r1 r22 5 5 int sh_database_insert (char * message); 6 6 7 int sh_database_use_persistent (c har * str);7 int sh_database_use_persistent (const char * str); 8 8 9 int sh_database_set_database (c har * str);10 int sh_database_set_table (c har * str);11 int sh_database_set_host (c har * str);12 int sh_database_set_user (c har * str);13 int sh_database_set_password (c har * str);14 int sh_database_add_to_hash (c har * str);15 int set_enter_wrapper (c har * str);9 int sh_database_set_database (const char * str); 10 int sh_database_set_table (const char * str); 11 int sh_database_set_host (const char * str); 12 int sh_database_set_user (const char * str); 13 int sh_database_set_password (const char * str); 14 int sh_database_add_to_hash (const char * str); 15 int set_enter_wrapper (const char * str); 16 16 #endif -
trunk/include/sh_error.h
r20 r22 81 81 /* set mask for message class 82 82 */ 83 int sh_error_log_mask (c har * c);84 int sh_error_print_mask (c har * c);85 int sh_error_mail_mask (c har * c);86 int sh_error_export_mask (c har * c);87 int sh_error_syslog_mask (c har * c);88 int sh_error_external_mask (c har * c);89 int sh_error_database_mask (c har * c);90 int sh_error_prelude_mask (c har * c);83 int sh_error_log_mask (const char * c); 84 int sh_error_print_mask (const char * c); 85 int sh_error_mail_mask (const char * c); 86 int sh_error_export_mask (const char * c); 87 int sh_error_syslog_mask (const char * c); 88 int sh_error_external_mask (const char * c); 89 int sh_error_database_mask (const char * c); 90 int sh_error_prelude_mask (const char * c); 91 91 92 92 … … 99 99 #ifdef SH_WITH_SERVER 100 100 void sh_error_set_peer(const char * str); 101 int set_flag_sep_log (c har * str);101 int set_flag_sep_log (const char * str); 102 102 #endif 103 103 … … 108 108 /* convert a string to a numeric priority 109 109 */ 110 int sh_error_convert_level (c har * str_s);110 int sh_error_convert_level (const char * str_s); 111 111 112 112 /* only to stderr (GOOD/BAD) … … 116 116 /* set syslog facility 117 117 */ 118 int sh_log_set_facility (c har * c);118 int sh_log_set_facility (const char * c); 119 119 120 120 /* define message header 121 121 */ 122 int sh_error_ehead (/*@null@*/c har * s);122 int sh_error_ehead (/*@null@*/const char * s); 123 123 124 124 /* set level for error logging … … 128 128 /* set severity levels 129 129 */ 130 int sh_error_set_iv (int iv, c har * severity_s);130 int sh_error_set_iv (int iv, const char * severity_s); 131 131 132 132 /* set priorities … … 178 178 /* (re)set the console device(s) 179 179 */ 180 int sh_log_set_console (c har * address);180 int sh_log_set_console (const char * address); 181 181 void reset_count_dev_console(void); 182 182 … … 188 188 /* enable message queue 189 189 */ 190 int enable_msgq(c har * foo);190 int enable_msgq(const char * foo); 191 191 #endif 192 192 -
trunk/include/sh_extern.h
r1 r22 43 43 * -- add CL argument, return # of arguments 44 44 */ 45 int sh_ext_tas_add_argv(sh_tas_t * tas, c har * val);45 int sh_ext_tas_add_argv(sh_tas_t * tas, const char * val); 46 46 /* 47 47 * -- remove last CL argument … … 51 51 * -- add environment variable, return # of variables 52 52 */ 53 int sh_ext_tas_add_envv(sh_tas_t * tas, c har * key,char * val);53 int sh_ext_tas_add_envv(sh_tas_t * tas, const char * key, const char * val); 54 54 /* 55 55 * -- set command 56 56 */ 57 void sh_ext_tas_command(sh_tas_t * tas, c har * command);57 void sh_ext_tas_command(sh_tas_t * tas, const char * command); 58 58 /* 59 59 * -- initialize task structure … … 71 71 * -- start a new external command, and add it to the list 72 72 */ 73 int sh_ext_setcommand(c har * cmd);73 int sh_ext_setcommand(const char * cmd); 74 74 75 75 /* … … 81 81 * -- set deadtime 82 82 */ 83 int sh_ext_deadtime (c har * str);83 int sh_ext_deadtime (const char * str); 84 84 85 85 /* 86 86 * -- add keywords to the OR filter 87 87 */ 88 int sh_ext_add_or (c har * str);88 int sh_ext_add_or (const char * str); 89 89 90 90 /* 91 91 * -- add keywords to the AND filter 92 92 */ 93 int sh_ext_add_and (c har * str);93 int sh_ext_add_and (const char * str); 94 94 95 95 /* 96 96 * -- add keywords to the NOT filter 97 97 */ 98 int sh_ext_add_not (c har * str);98 int sh_ext_add_not (const char * str); 99 99 100 100 /* 101 101 * -- add keywords to the CL argument list 102 102 */ 103 int sh_ext_add_argv (c har * str);103 int sh_ext_add_argv (const char * str); 104 104 105 105 /* 106 106 * -- add a path to the environment 107 107 */ 108 int sh_ext_add_default (c har * str);108 int sh_ext_add_default (const char * str); 109 109 110 110 /* 111 111 * -- add an environment variable 112 112 */ 113 int sh_ext_add_environ (c har * str);113 int sh_ext_add_environ (const char * str); 114 114 115 115 /* 116 116 * -- define type 117 117 */ 118 int sh_ext_type (c har * str);118 int sh_ext_type (const char * str); 119 119 120 120 /* 121 121 * -- define checksum 122 122 */ 123 int sh_ext_checksum (c har * str);123 int sh_ext_checksum (const char * str); 124 124 125 125 /* 126 126 * -- choose privileges 127 127 */ 128 int sh_ext_priv (c har * c);128 int sh_ext_priv (const char * c); 129 129 130 130 /* -
trunk/include/sh_files.h
r20 r22 23 23 /* register exceptions to hardlink check 24 24 */ 25 int sh_files_hle_reg (c har * str);25 int sh_files_hle_reg (const char * str); 26 26 27 27 /* check the setup … … 35 35 /* activate hardlink check 36 36 */ 37 int sh_files_check_hardlinks (c har * opt);37 int sh_files_check_hardlinks (const char * opt); 38 38 39 39 /* set recursion depth … … 43 43 /* report only once 44 44 */ 45 int sh_files_reportonce(c har * c);45 int sh_files_reportonce(const char * c); 46 46 47 47 /* report full details 48 48 */ 49 int sh_files_fulldetail(c har * c);49 int sh_files_fulldetail(const char * c); 50 50 51 51 /* reset the 'checked' flag … … 67 67 /* push a directory on the stack USER0 68 68 */ 69 int sh_files_pushdir_user0 (c har * dirName);69 int sh_files_pushdir_user0 (const char * dirName); 70 70 71 71 /* push a directory on the stack USER1 72 72 */ 73 int sh_files_pushdir_user1 (c har * dirName);73 int sh_files_pushdir_user1 (const char * dirName); 74 74 75 75 /* push a directory on the stack PRELINK 76 76 */ 77 int sh_files_pushdir_prelink (c har * dirName);77 int sh_files_pushdir_prelink (const char * dirName); 78 78 79 79 /* push a directory on the stack ATTR 80 80 */ 81 int sh_files_pushdir_attr (c har * dirName);81 int sh_files_pushdir_attr (const char * dirName); 82 82 83 83 /* push a directory on the stack READONLY 84 84 */ 85 int sh_files_pushdir_ro (c har * dirName);85 int sh_files_pushdir_ro (const char * dirName); 86 86 87 87 /* push a directory on the stack LOGFILE 88 88 */ 89 int sh_files_pushdir_log (c har * dirName);89 int sh_files_pushdir_log (const char * dirName); 90 90 91 91 /* push a directory on the stack GROWING LOGFILE 92 92 */ 93 int sh_files_pushdir_glog (c har * dirName);93 int sh_files_pushdir_glog (const char * dirName); 94 94 95 95 /* push a directory on the stack IGNORE NONE 96 96 */ 97 int sh_files_pushdir_noig (c har * dirName);97 int sh_files_pushdir_noig (const char * dirName); 98 98 99 99 /* push a directory on the stack IGNORE ALL 100 100 */ 101 int sh_files_pushdir_allig (c har * dirName);101 int sh_files_pushdir_allig (const char * dirName); 102 102 103 103 104 104 /* push a file on the stack USER0 105 105 */ 106 int sh_files_pushfile_user0 (c har * dirName);106 int sh_files_pushfile_user0 (const char * dirName); 107 107 108 108 /* push a file on the stack USER1 109 109 */ 110 int sh_files_pushfile_user1 (c har * dirName);110 int sh_files_pushfile_user1 (const char * dirName); 111 111 112 112 /* push a file on the stack PRELINK 113 113 */ 114 int sh_files_pushfile_prelink (c har * dirName);114 int sh_files_pushfile_prelink (const char * dirName); 115 115 116 116 /* push a file on the stack ATTR 117 117 */ 118 int sh_files_pushfile_attr (c har * dirName);118 int sh_files_pushfile_attr (const char * dirName); 119 119 120 120 /* push a file on the stack READONLY 121 121 */ 122 int sh_files_pushfile_ro (c har * dirName);122 int sh_files_pushfile_ro (const char * dirName); 123 123 124 124 /* push a file on the stack LOGFILE 125 125 */ 126 int sh_files_pushfile_log (c har * dirName);126 int sh_files_pushfile_log (const char * dirName); 127 127 128 128 /* push a file on the stack GROWING LOGFILE 129 129 */ 130 int sh_files_pushfile_glog (c har * dirName);130 int sh_files_pushfile_glog (const char * dirName); 131 131 132 132 /* push a file on the stack IGNORE NONE 133 133 */ 134 int sh_files_pushfile_noig (c har * dirName);134 int sh_files_pushfile_noig (const char * dirName); 135 135 136 136 /* push a file on the stack IGNORE ALL 137 137 */ 138 int sh_files_pushfile_allig (c har * dirName);138 int sh_files_pushfile_allig (const char * dirName); 139 139 140 140 … … 153 153 /* redefine policies 154 154 */ 155 int sh_files_redef_user0(c har * str);156 int sh_files_redef_user1(c har * str);157 int sh_files_redef_prelink(c har * str);158 int sh_files_redef_readonly(c har * str);159 int sh_files_redef_loggrow(c har * str);160 int sh_files_redef_logfiles(c har * str);161 int sh_files_redef_attributes(c har * str);162 int sh_files_redef_noignore(c har * str);163 int sh_files_redef_allignore(c har * str);155 int sh_files_redef_user0(const char * str); 156 int sh_files_redef_user1(const char * str); 157 int sh_files_redef_prelink(const char * str); 158 int sh_files_redef_readonly(const char * str); 159 int sh_files_redef_loggrow(const char * str); 160 int sh_files_redef_logfiles(const char * str); 161 int sh_files_redef_attributes(const char * str); 162 int sh_files_redef_noignore(const char * str); 163 int sh_files_redef_allignore(const char * str); 164 164 165 165 -
trunk/include/sh_forward.h
r20 r22 32 32 /* set time limit 33 33 */ 34 int sh_forward_set_time_limit(c har * str);34 int sh_forward_set_time_limit(const char * str); 35 35 36 36 /* error level for lookup failure 37 37 */ 38 int sh_forward_lookup_level (c har * c);38 int sh_forward_lookup_level (const char * c); 39 39 40 40 /* create client entry for given password … … 45 45 46 46 #ifdef INET_SYSLOG 47 int set_syslog_active(c har * c);47 int set_syslog_active(const char * c); 48 48 #endif 49 49 … … 55 55 * and set by accept() 56 56 */ 57 int set_socket_peer (c har * c);57 int set_socket_peer (const char * c); 58 58 59 59 /* whether to use client severity 60 60 */ 61 int sh_forward_use_clt_sev (c har * c);61 int sh_forward_use_clt_sev (const char * c); 62 62 63 63 /* whether to use client class 64 64 */ 65 int sh_forward_use_clt_class (c har * c);65 int sh_forward_use_clt_class (const char * c); 66 66 67 67 /* server port 68 68 */ 69 int sh_forward_set_port(c har * c);69 int sh_forward_set_port(const char * c); 70 70 71 71 /* server interface 72 72 */ 73 int sh_forward_set_interface(c har * c);73 int sh_forward_set_interface(const char * c); 74 74 75 75 /* a wrapper function … … 79 79 /* register a client 80 80 */ 81 int sh_forward_register_client (c har * str);81 int sh_forward_register_client (const char * str); 82 82 83 83 /* start server … … 103 103 /* set log server 104 104 */ 105 int sh_forward_setlogserver (c har * address);105 int sh_forward_setlogserver (const char * address); 106 106 void reset_count_dev_server(void); 107 107 -
trunk/include/sh_hash.h
r20 r22 42 42 /* version string for database 43 43 */ 44 int sh_hash_version_string(c har * str);44 int sh_hash_version_string(const char * str); 45 45 46 46 /* List database content -
trunk/include/sh_ignore.h
r1 r22 2 2 #define SH_IGNORE_H 3 3 4 int sh_ignore_add_del (c har * addpath);5 int sh_ignore_add_new (c har * addpath);4 int sh_ignore_add_del (const char * addpath); 5 int sh_ignore_add_new (const char * addpath); 6 6 7 7 int sh_ignore_chk_del (const char * chkpath); -
trunk/include/sh_mail.h
r20 r22 26 26 /* set a relay server 27 27 */ 28 int sh_mail_set_relay (c har * str_s);28 int sh_mail_set_relay (const char * str_s); 29 29 30 30 /* send to all recpts. in one mail 31 31 */ 32 int sh_mail_setFlag (c har * str);32 int sh_mail_setFlag (const char * str); 33 33 34 34 /* set the subject string 35 35 */ 36 int set_mail_subject (c har * str);36 int set_mail_subject (const char * str); 37 37 38 38 /* test mailbox … … 44 44 #define SH_MAX_FAIL 48 45 45 46 int sh_mail_setNum (c har * str);46 int sh_mail_setNum (const char * str); 47 47 48 int sh_mail_setaddress (c har * address);48 int sh_mail_setaddress (const char * address); 49 49 void reset_count_dev_mail(void); 50 int sh_mail_setaddress_int (c har * address);50 int sh_mail_setaddress_int (const char * address); 51 51 52 52 /* call if not urgent … … 60 60 /* set sender of mail 61 61 */ 62 int sh_mail_set_sender (c har *str);62 int sh_mail_set_sender (const char *str); 63 63 64 int sh_mail_add_or (c har * str);65 int sh_mail_add_and (c har * str);66 int sh_mail_add_not (c har * str);64 int sh_mail_add_or (const char * str); 65 int sh_mail_add_and (const char * str); 66 int sh_mail_add_not (const char * str); 67 67 68 68 #endif -
trunk/include/sh_prelink.h
r1 r22 14 14 /* configuration 15 15 */ 16 int sh_prelink_set_path (c har * str);17 int sh_prelink_set_hash (c har * str);16 int sh_prelink_set_path (const char * str); 17 int sh_prelink_set_hash (const char * str); 18 18 #endif -
trunk/include/sh_prelude.h
r1 r22 6 6 int sh_prelude_init(); 7 7 8 int sh_prelude_set_profile(c har *arg);8 int sh_prelude_set_profile(const char *arg); 9 9 10 10 int sh_prelude_alert (int priority, int class, char * message, … … 13 13 /* map severity levels 14 14 */ 15 int sh_prelude_map_info (c har * str);16 int sh_prelude_map_low (c har * str);17 int sh_prelude_map_medium (c har * str);18 int sh_prelude_map_high (c har * str);15 int sh_prelude_map_info (const char * str); 16 int sh_prelude_map_low (const char * str); 17 int sh_prelude_map_medium (const char * str); 18 int sh_prelude_map_high (const char * str); 19 19 20 20 #endif -
trunk/include/sh_tiger.h
r20 r22 22 22 /* NEW Thu Oct 18 19:59:08 CEST 2001 23 23 */ 24 int sh_tiger_hashtype (c har * c);24 int sh_tiger_hashtype (const char * c); 25 25 char * sh_tiger_generic_hash (char * filename, TigerType what, 26 26 UINT64 Length, int timeout); -
trunk/include/sh_unix.h
r20 r22 148 148 /* whether to use localtime for file timesatams in logs 149 149 */ 150 int sh_unix_uselocaltime (c har * c);150 int sh_unix_uselocaltime (const char * c); 151 151 152 152 /* set I/O limit 153 153 */ 154 int sh_unix_set_io_limit (c har * c);154 int sh_unix_set_io_limit (const char * c); 155 155 void sh_unix_io_pause (); 156 156 … … 199 199 /* checksum of own binary 200 200 */ 201 int sh_unix_self_hash (c har * c);201 int sh_unix_self_hash (const char * c); 202 202 203 203 /* return BAD on failure … … 207 207 /* add a trusted user to the list 208 208 */ 209 int tf_add_trusted_user(c har *);209 int tf_add_trusted_user(const char *); 210 210 211 211 /* check a file … … 224 224 /* set the timeserver address 225 225 */ 226 int sh_unix_settimeserver (c har * address);226 int sh_unix_settimeserver (const char * address); 227 227 void reset_count_dev_time(void); 228 228 -
trunk/include/sh_utils.h
r20 r22 65 65 /* set signature type HASH-TIGER/HMAC-TIGER 66 66 */ 67 int sh_util_sigtype (c har * c);67 int sh_util_sigtype (const char * c); 68 68 69 69 /* compute a signature … … 83 83 /* don't log output files 84 84 */ 85 int sh_util_hidesetup(c har * c);85 int sh_util_hidesetup(const char * c); 86 86 87 87 /* exceptions to obscure name check 88 88 */ 89 int sh_util_obscure_ok (c har * str);89 int sh_util_obscure_ok (const char * str); 90 90 91 91 /* read a hexchar
Note:
See TracChangeset
for help on using the changeset viewer.