Skip to content

Commit

Permalink
Remove unused #defines
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerysong committed Nov 2, 2024
1 parent 9f61859 commit 569f997
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
4 changes: 0 additions & 4 deletions libopenarc/arc-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@
#define BUFRSZ 2048 /* base temp buffer size */
#define BASE64SIZE(x) (((x + 2) / 3) * 4)
/* base64 encoding growth ratio */
#define MAXADDRESS 256 /* biggest user@host we accept */
#define MAXBUFRSZ 65536 /* max temp buffer size */
#define MAXCNAMEDEPTH 3 /* max. CNAME recursion we allow */
#define MAXHEADERS 32768 /* buffer for caching headers */
#define MAXLABELS 16 /* max. labels we allow */
#define MAXTAGNAME 8 /* biggest tag name */

#define NPRINTABLE 95 /* number of printable characters */
Expand Down
17 changes: 1 addition & 16 deletions libopenarc/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,12 @@ void arc_error(ARC_MESSAGE *, const char *, ...);

#define BUFRSZ 2048
#define DEFERRLEN 128
#define DEFTIMEOUT 10

/* generic array size macro */
#define NITEMS(array) ((int) (sizeof(array) / sizeof(array[0])))

/* local definitions needed for DNS queries */
#define MAXPACKET 8192
#if defined(__RES) && (__RES >= 19940415)
#define RES_UNC_T char *
#else /* __RES && __RES >= 19940415 */
#define RES_UNC_T unsigned char *
#endif /* __RES && __RES >= 19940415 */

#ifndef T_AAAA
#define T_AAAA 28
#endif /* ! T_AAAA */

/* macros */
#define ARC_ISLWSP(x) ((x) == 011 || (x) == 013 || (x) == 014 || (x) == 040)

#define ARC_PHASH(x) ((x) -32)
#define ARC_PHASH(x) ((x) -32)

/*
** ARC_ERROR -- log an error into a DKIM handle
Expand Down
12 changes: 1 addition & 11 deletions openarc/openarc.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
#ifndef _OPENARC_H_
#define _OPENARC_H_

#define ARCF_PRODUCT "OpenARC Filter"
#define ARCF_PRODUCTNS "OpenARC-Filter"
#define ARCF_PRODUCT "OpenARC Filter"

#include "build-config.h"

Expand All @@ -34,23 +33,14 @@

/* defaults, limits, etc. */
#define BUFRSZ 2048
#define CONFIGOPTS "Ac:flnp:P:rt:u:vV"
#define DEFCONFFILE CONFIG_BASE "/openarc.conf"
#define DEFINTERNAL "csl:127.0.0.1,::1"
#define DEFMAXHDRSZ 65536
#define HOSTUNKNOWN "unknown-host"
#define JOBIDUNKNOWN "(unknown-jobid)"
#define LOCALHOST "127.0.0.1"
#define LOCALHOST6 "::1"
#define MAXADDRESS 256
#define MAXARGV 65536
#define MAXBUFRSZ 65536
#define MAXHDRCNT 64
#define MAXHDRLEN 78
#define MAXSIGNATURE 1024
#define MTAMARGIN 78
#define NULLDOMAIN "(invalid)"
#define UNKNOWN "unknown"

#define AUTHRESULTSHDR "Authentication-Results"
#define SWHEADERNAME "ARC-Filter"
Expand Down

0 comments on commit 569f997

Please sign in to comment.