From e6e9663d40f7aab9e1982dddcaa11386551ad182 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 22:05:52 +0200 Subject: fix issues preventing compilation --- src/include/control.h | 2 +- src/include/dkim.h | 5 +++++ src/include/dkimsign.h | 1 + src/include/dkimverify.h | 1 + src/include/sha256.h | 3 +++ 5 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/include') 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 +#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 +#include + typedef struct { uint8_t data[64]; uint32_t datalen; -- cgit v1.2.3