diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/control.h | 2 | ||||
-rw-r--r-- | src/include/dkim.h | 5 | ||||
-rw-r--r-- | src/include/dkimsign.h | 1 | ||||
-rw-r--r-- | src/include/dkimverify.h | 1 | ||||
-rw-r--r-- | src/include/sha256.h | 3 |
5 files changed, 11 insertions, 1 deletions
diff --git a/src/include/control.h b/src/include/control.h index fdd72b3..6d10345 100644 --- a/src/include/control.h +++ b/src/include/control.h @@ -6,7 +6,7 @@ int control_init(void); int control_readline(stralloc *, char *); int control_rldef(stralloc *, char *, int, char *); -int control_readint(int *, char *); +int control_readint(unsigned long *, char *); int control_readfile(stralloc *, char *, int); #endif diff --git a/src/include/dkim.h b/src/include/dkim.h index 27c3b73..a74b785 100644 --- a/src/include/dkim.h +++ b/src/include/dkim.h @@ -19,6 +19,9 @@ * Changes done by ¢feh@fehcom.de obeying the above license * *****************************************************************************/ +#ifndef DKIM_H_INCLUDE +#define DKIM_H_INCLUDE + #define DKIM_CALL #define MAKELONG(a, b) ((long)(((unsigned)(a) & 0xffff) | (((unsigned)(b) & 0xffff) << 16))) @@ -152,3 +155,5 @@ const char *DKIM_ErrorResult(const int); #ifdef __cplusplus } #endif + +#endif diff --git a/src/include/dkimsign.h b/src/include/dkimsign.h index 75d33de..49259ba 100644 --- a/src/include/dkimsign.h +++ b/src/include/dkimsign.h @@ -22,6 +22,7 @@ #ifndef DKIMSIGN_H #define DKIMSIGN_H +#include "dkim.h" #include "dkimbase.h" class CDKIMSign : public CDKIMBase { diff --git a/src/include/dkimverify.h b/src/include/dkimverify.h index fb7d564..8347957 100644 --- a/src/include/dkimverify.h +++ b/src/include/dkimverify.h @@ -24,6 +24,7 @@ #include <vector> +#include "dkim.h" #include "dkimbase.h" /* not used anymore diff --git a/src/include/sha256.h b/src/include/sha256.h index 8c920b1..80ee0ab 100644 --- a/src/include/sha256.h +++ b/src/include/sha256.h @@ -1,6 +1,9 @@ #ifndef SHA256_H #define SHA256_H +#include <stddef.h> +#include <stdint.h> + typedef struct { uint8_t data[64]; uint32_t datalen; |