diff options
author | Stef Walter <stef@memberwebs.com> | 2004-07-08 18:27:54 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-07-08 18:27:54 +0000 |
commit | c912dc0c7a6ab39c90200ed5614b181cd1397d5c (patch) | |
tree | a3b2df0f9a3a62ea9de95395d8e313bffddce203 /common/smtppass.h | |
parent | 0561cfd0ce346fce733dd1b25e5b2650e50bf7bf (diff) |
Initial import
Diffstat (limited to 'common/smtppass.h')
-rw-r--r-- | common/smtppass.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/common/smtppass.h b/common/smtppass.h new file mode 100644 index 0000000..4931e5e --- /dev/null +++ b/common/smtppass.h @@ -0,0 +1,24 @@ +#ifndef __CLAMSMTPD_H__ +#define __CLAMSMTPD_H__ + +/* A generous maximum line length. */ +#define LINE_LENGTH 2000 + +typedef struct clamsmtp_context +{ + unsigned int id; /* Identifier for the connection */ + + int client; /* Connection to client */ + int server; /* Connection to server */ + int clam; /* Connection to clamd */ + + char line[LINE_LENGTH]; /* Working buffer */ + int linelen; /* Length of valid data in above */ +} +clamsmtp_context_t; + +extern int g_daemonized; /* Currently running as a daemon */ +extern int g_debuglevel; /* what gets logged to console */ +extern pthread_mutex_t g_mutex; /* The main mutex */ + +#endif /* __CLAMSMTPD_H__ */ |