X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=policy.h;h=1ebaba1b158400698705516b22191ca9a6b08d0d;hb=42ea2884f2b8a1b7cb940f4e07d22444c6f61cc6;hp=c4bd145123165e263d175b5bf8ff0639f6577ee0;hpb=ff472b8f6fc8252d2df36d3b04ac2955443329a7;p=apps%2Fpfixtools.git diff --git a/policy.h b/policy.h index c4bd145..1ebaba1 100644 --- a/policy.h +++ b/policy.h @@ -36,6 +36,8 @@ #ifndef POSTLICYD_POLICY_H #define POSTLICYD_POLICY_H +#include "buffer.h" + enum protocol_state { STATE_CONNECT, STATE_HELO, /* or EHLO */ @@ -48,7 +50,6 @@ enum protocol_state { }; typedef struct policy_request { - unsigned ready : 1; unsigned state : 4; unsigned esmtp : 1; @@ -76,7 +77,14 @@ typedef struct policy_request { const char *encryption_cipher; const char *encryption_keysize; const char *etrn_domain; + + buffer_t buf; } 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