#ifndef POSTLICYD_POLICY_H
#define POSTLICYD_POLICY_H
+#include "buffer.h"
+
enum protocol_state {
STATE_CONNECT,
STATE_HELO, /* or EHLO */
};
typedef struct policy_request {
- unsigned ready : 1;
unsigned state : 4;
unsigned esmtp : 1;
const char *encryption_cipher;
const char *encryption_keysize;
const char *etrn_domain;
+
+ ssize_t rqsize;
+ buffer_t ibuf;
+ buffer_t obuf;
} policy_request;
+policy_request *pcyrq_init(policy_request *rq);
+void pcyrq_wipe(policy_request *rq);
+DO_NEW(policy_request, pcyrq);
+DO_DELETE(policy_request, pcyrq);
#endif