1 /* SAMHAIN file system integrity testing */ 2 /* Copyright (C) 1999 Rainer Wichmann */ 3 /* */ 4 /* This program is free software; you can redistribute it */ 5 /* and/or modify */ 6 /* it under the terms of the GNU General Public License as */ 7 /* published by */ 8 /* the Free Software Foundation; either version 2 of the License, or */ 9 /* (at your option) any later version. */ 10 /* */ 11 /* This program is distributed in the hope that it will be useful, */ 12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 14 /* GNU General Public License for more details. */ 15 /* */ 16 /* You should have received a copy of the GNU General Public License */ 17 /* along with this program; if not, write to the Free Software */ 18 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 20 #ifndef SH_MAIL_H 21 #define SH_MAIL_H 22 23 #define MAIL_IMMEDIATE 1 24 #define MAIL_LATER 0 25 26 /* set a relay server 27 */ 28 int sh_mail_set_relay (const char * str_s); 29 30 /* send to all recpts. in one mail 31 */ 32 int sh_mail_setFlag (const char * str); 33 34 /* set the subject string 35 */ 36 int set_mail_subject (const char * str); 37 38 /* test mailbox 39 */ 40 int sh_mail_sigverify (const char * s); 41 42 /* maximum number of mail attempts 43 */ 44 #define SH_MAX_FAIL 48 45 46 int sh_mail_setNum (const char * str); 47 48 int sh_mail_setaddress (const char * address); 49 void reset_count_dev_mail(void); 50 int sh_mail_setaddress_int (const char * address); 51 52 /* call if not urgent 53 */ 54 int sh_mail_pushstack (int severity, const char * msg, const char * alias); 55 56 /* Set the port to use (default 25) 57 */ 58 int sh_mail_set_port (const char * str); 59 60 /* set sender of mail 61 */ 62 int sh_mail_set_sender (const char *str); 63 64 #endif 65