summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/client.h')
-rw-r--r--usr.sbin/smtpd/client.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/client.h b/usr.sbin/smtpd/client.h
index e10458b3afe..34fa90bed34 100644
--- a/usr.sbin/smtpd/client.h
+++ b/usr.sbin/smtpd/client.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.h,v 1.10 2010/01/02 13:42:42 jacekm Exp $ */
+/* $OpenBSD: client.h,v 1.11 2010/01/02 16:41:19 jacekm Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -70,20 +70,24 @@ struct client_auth {
size_t keysz;
};
+/* session flags */
+#define CLIENT_FLAG_FIRSTTIME 0x1
+#define CLIENT_FLAG_HANDSHAKING 0x2
+#define CLIENT_FLAG_RCPTOKAY 0x4
+#define CLIENT_FLAG_DYING 0x8
+
struct smtp_client {
size_t cmdi; /* iterator */
size_t cmdw; /* window */
struct cmdqueue cmdsendq; /* cmds to send */
struct cmdqueue cmdrecvq; /* replies waited for */
+ int flags;
void *rcptfail;
- size_t rcptokay;
-
char *ehlo;
char reply[1024];
struct buf_read r;
struct msgbuf w;
- short ssl_handshake;
void *ssl;
int sndlowat;
struct timeval timeout;
@@ -97,7 +101,6 @@ struct smtp_client {
struct client_auth auth;
char status[1024];
- short dying;
};
struct smtp_client *client_init(int, int, char *, int);