[1] | 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 | */
|
---|
[22] | 28 | int sh_mail_set_relay (const char * str_s);
|
---|
[1] | 29 |
|
---|
| 30 | /* send to all recpts. in one mail
|
---|
| 31 | */
|
---|
[22] | 32 | int sh_mail_setFlag (const char * str);
|
---|
[1] | 33 |
|
---|
| 34 | /* set the subject string
|
---|
| 35 | */
|
---|
[22] | 36 | int set_mail_subject (const char * str);
|
---|
[1] | 37 |
|
---|
| 38 | /* test mailbox
|
---|
| 39 | */
|
---|
[20] | 40 | int sh_mail_sigverify (const char * s);
|
---|
[1] | 41 |
|
---|
| 42 | /* maximum number of mail attempts
|
---|
| 43 | */
|
---|
| 44 | #define SH_MAX_FAIL 48
|
---|
| 45 |
|
---|
[22] | 46 | int sh_mail_setNum (const char * str);
|
---|
[1] | 47 |
|
---|
[22] | 48 | int sh_mail_setaddress (const char * address);
|
---|
[1] | 49 | void reset_count_dev_mail(void);
|
---|
[22] | 50 | int sh_mail_setaddress_int (const char * address);
|
---|
[1] | 51 |
|
---|
| 52 | /* call if not urgent
|
---|
| 53 | */
|
---|
[214] | 54 | int sh_mail_pushstack (int severity, const char * msg, const char * alias);
|
---|
[1] | 55 |
|
---|
[216] | 56 | /* Set the port to use (default 25)
|
---|
| 57 | */
|
---|
| 58 | int sh_mail_set_port (const char * str);
|
---|
| 59 |
|
---|
[1] | 60 | /* set sender of mail
|
---|
| 61 | */
|
---|
[22] | 62 | int sh_mail_set_sender (const char *str);
|
---|
[1] | 63 |
|
---|
| 64 | #endif
|
---|