Skip to content

Commit f657232

Browse files
authored
Merge pull request #432 from thegushi/fix/issue-413-dkim-error-header-decl
libopendkim: declare dkim_error and dkim_get_key in dkim-internal.h (fixes #413)
2 parents 19c431d + 7995b43 commit f657232

7 files changed

Lines changed: 2 additions & 18 deletions

File tree

libopendkim/dkim-atps.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
# include <openssl/evp.h>
4040
#endif /* USE_GNUTLS */
4141

42-
/* prototypes */
43-
extern void dkim_error (DKIM *, const char *, ...);
44-
4542
/* local definitions needed for DNS queries */
4643
#define MAXPACKET 8192
4744
#if defined(__RES) && (__RES >= 19940415)

libopendkim/dkim-canon.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
#define DKIM_ISWSP(x) ((x) == 011 || (x) == 040)
6464
#define DKIM_ISLWSP(x) ((x) == 011 || (x) == 012 || (x) == 015 || (x) == 040)
6565

66-
/* prototypes */
67-
extern void dkim_error (DKIM *, const char *, ...);
68-
6966
/* ========================= PRIVATE SECTION ========================= */
7067

7168
/*

libopendkim/dkim-internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,7 @@ extern DKIM_NAMETABLE *dkim_table_mandatory;
164164
extern DKIM_STAT dkim_process_set (DKIM *, dkim_set_t, u_char *, size_t,
165165
void *, _Bool, const char *);
166166
extern DKIM_STAT dkim_siglist_setup (DKIM *);
167+
extern DKIM_STAT dkim_get_key (DKIM *, DKIM_SIGINFO *, _Bool);
168+
extern void dkim_error (DKIM *, const char *, ...);
167169

168170
#endif /* ! _DKIM_INTERNAL_H_ */

libopendkim/dkim-keys.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
# include <strl.h>
4040
#endif /* USE_STRL_H */
4141

42-
/* prototypes */
43-
extern void dkim_error (DKIM *, const char *, ...);
44-
4542
/* local definitions needed for DNS queries */
4643
#define MAXPACKET 8192
4744
#if defined(__RES) && (__RES >= 19940415)

libopendkim/dkim-report.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
#include "dkim-types.h"
2525
#include "util.h"
2626

27-
/* prototypes */
28-
extern void dkim_error (DKIM *, const char *, ...);
29-
3027
/* local definitions needed for DNS queries */
3128
#define MAXPACKET 8192
3229
#if defined(__RES) && (__RES >= 19940415)

libopendkim/dkim-test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
#define TESTTTL 300
5252
#define MAXPACKET 8192
5353

54-
/* prototypes from elsewhere */
55-
extern DKIM_STAT dkim_get_key (DKIM *, DKIM_SIGINFO *, _Bool);
56-
5754
/*
5855
** DKIM_TEST_DNS_PUT -- enqueue a DNS reply for automated testing
5956
**

libopendkim/dkim-util.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
#include "dkim-types.h"
2929
#include "dkim-util.h"
3030

31-
/* prototypes */
32-
extern void dkim_error (DKIM *, const char *, ...);
33-
3431
/*
3532
** DKIM_MALLOC -- allocate memory
3633
**

0 commit comments

Comments
 (0)