| version 1.2, 2003/01/08 20:50:47 |
version 1.3, 2003/01/12 14:30:38 |
|
|
| * http://www.platon.sk/projects/libplaton/ |
* http://www.platon.sk/projects/libplaton/ |
| */ |
*/ |
| |
|
| |
/* $Platon: */ |
| |
|
| #ifndef MAIN_H |
#ifndef MAIN_H |
| # define MAIN_H |
# define MAIN_H |
| |
|
| /* Debugging mode. Note that also valid or unvalid passwords will be stored |
/* Program name (used with syslog, etc.) */ |
| into syslog with this option enabled. */ |
#define PROGRAM_NAME "atomicpop3pass" |
| #define DEBUG 0 |
|
| |
/* Configuration file location. */ |
| |
#define CONFIG_FILE "/var/qmail/users/poppasswd" |
| |
|
| |
/* Verbosity level |
| |
|
| |
0 - no logging (syslog completelly disabled) |
| |
1 - errors only (shows only program execution errors) |
| |
3 - brief info (quiet; one message per logon) |
| |
5 - common info without debugging (verbose) |
| |
9 - all debug messages (for development purpose) |
| |
|
| |
Note that also valid or unvalid passwords will be stored into syslog |
| |
with this option enabled. */ |
| |
#define SYSLOG_LEVEL (3) |
| |
|
| |
/* Three internal logging levels maped to syslog ones. */ |
| |
#if SYSLOG_LEVEL >= 1 |
| |
# include <syslog.h> |
| |
# define SYSLOG_DEBUG LOG_DEBUG /* debugging messages */ |
| |
# define SYSLOG_INFO LOG_INFO /* informational messages */ |
| |
# define SYSLOG_ERROR LOG_ERR /* error and warning messages */ |
| |
#endif |
| |
|
| |
/* Syslog facility */ |
| |
#define SYSLOG_FACILITY LOG_LOCAL0 |
| |
|
| /* Sleep in seconds after invalid login. If you don't like silly telnet |
/* Sleep in seconds after invalid login. If you don't like silly telnet |
| crackers, feel free to keep this number high, even more than 15. */ |
crackers, feel free to keep this number high, even more than 15. */ |
| #define SLEEP 20 |
#define SLEEP (20) |
| |
|
| /* Buffer size. Keep it at least 2048. */ |
/* Buffer size. Keep it at least 2048. */ |
| #define BUFLEN 2048 |
#define BUFLEN (2048) |
| |
|
| /* Configuration file location. */ |
/* Exit function */ |
| #define CONFIG_FILE "/var/qmail/users/poppasswd" |
void atexit_function0(void); |
| |
|
| /* String clearing function specially for login and password. */ |
/* String clearing function specially for login and password */ |
| void nuke_dynamic_string(char **str); |
void nuke_dynamic_string(char **str); |
| |
|
| #endif /* ifndef MAIN_H */ |
#endif /* ifndef MAIN_H */ |
| |
|
| |
/* Modeline for ViM {{{ |
| |
* vim:set ts=4: |
| |
* vim600:fdm=marker fdl=0 fdc=0: |
| |
* }}} */ |
| |
|