summaryrefslogtreecommitdiff
path: root/src/include/dkimbase.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
commita6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (patch)
treeb88cc7a8457658d67e0321718556ac807f6bccf3 /src/include/dkimbase.h
parent00be7622c428f279872f84569f098ce16150f8a8 (diff)
format files
Diffstat (limited to 'src/include/dkimbase.h')
-rw-r--r--src/include/dkimbase.h64
1 files changed, 31 insertions, 33 deletions
diff --git a/src/include/dkimbase.h b/src/include/dkimbase.h
index 25aac02..bfecb5d 100644
--- a/src/include/dkimbase.h
+++ b/src/include/dkimbase.h
@@ -22,58 +22,56 @@
#ifndef DKIMBASE_H
#define DKIMBASE_H
+#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
-#include <openssl/err.h>
#define BUFFER_ALLOC_INCREMENT 256
-#include <string>
#include <list>
+#include <string>
using namespace std;
-class CDKIMBase
-{
+class CDKIMBase {
public:
+ CDKIMBase();
+ ~CDKIMBase();
- CDKIMBase();
- ~CDKIMBase();
-
- int Init(void);
+ int Init(void);
- int Process(const char* szBuffer,int nBufLength,bool bEOF);
- int ProcessFinal(void);
+ int Process(const char *szBuffer, int nBufLength, bool bEOF);
+ int ProcessFinal(void);
- int Alloc(char*& szBuffer,int nRequiredSize);
- int ReAlloc(char*& szBuffer,int& nBufferLength,int nRequiredSize);
- void Free(char* szBuffer);
+ int Alloc(char *& szBuffer, int nRequiredSize);
+ int ReAlloc(char *& szBuffer, int& nBufferLength, int nRequiredSize);
+ void Free(char *szBuffer);
- static void RemoveSWSP(char* szBuffer);
- static void RemoveSWSP(char* pBuffer,int& nBufLength);
- static void RemoveSWSP(string& sBuffer);
+ static void RemoveSWSP(char *szBuffer);
+ static void RemoveSWSP(char *pBuffer, int& nBufLength);
+ static void RemoveSWSP(string& sBuffer);
- static void CompressSWSP(char* pBuffer,int& nBufLength);
- static void CompressSWSP(string& sBuffer);
+ static void CompressSWSP(char *pBuffer, int& nBufLength);
+ static void CompressSWSP(string& sBuffer);
- static string RelaxHeader(const string& sHeader);
+ static string RelaxHeader(const string& sHeader);
- virtual int ProcessHeaders(void);
- virtual int ProcessBody(char* szBuffer,int nBufLength,bool bEOF);
+ virtual int ProcessHeaders(void);
+ virtual int ProcessBody(char *szBuffer, int nBufLength, bool bEOF);
protected:
- char* m_From;
- char* m_Sender;
- char* m_hTag;
- int m_hTagSize;
- int m_hTagPos;
- char* m_Line;
- int m_LineSize;
- int m_LinePos;
- bool m_InHeaders;
-
- list<string> HeaderList;
+ char *m_From;
+ char *m_Sender;
+ char *m_hTag;
+ int m_hTagSize;
+ int m_hTagPos;
+ char *m_Line;
+ int m_LineSize;
+ int m_LinePos;
+ bool m_InHeaders;
+
+ list<string> HeaderList;
};
-#endif // DKIMBASE_H
+#endif // DKIMBASE_H