-
Notifications
You must be signed in to change notification settings - Fork 55
/
conf_refcnt
212 lines (212 loc) · 12.5 KB
/
conf_refcnt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
m4/ac_pthread.m4:# http://www.gnu.org/software/autoconf-archive/ax_pthread.html
opendmarc/opendmarc.c: conf->conf_authservid = strdup(myhostname);
opendmarc/opendmarc.c: conf->conf_authservid = strdup(str);
opendmarc/opendmarc.c: dmarcf_mkarray(str, ",", &conf->conf_trustedauthservids);
opendmarc/opendmarc.c: dmarcf_mkarray(str, ",", &conf->conf_ignoredomains);
opendmarc/opendmarc.c: &conf->conf_authservidwithjobid,
opendmarc/opendmarc.c: sizeof conf->conf_authservidwithjobid);
opendmarc/opendmarc.c: &conf->conf_copyfailsto,
opendmarc/opendmarc.c: sizeof conf->conf_copyfailsto);
opendmarc/opendmarc.c: if (conf->conf_dnstimeout == DEFTIMEOUT)
opendmarc/opendmarc.c: &conf->conf_dnstimeout,
opendmarc/opendmarc.c: sizeof conf->conf_dnstimeout);
opendmarc/opendmarc.c: &conf->conf_enablecores,
opendmarc/opendmarc.c: sizeof conf->conf_enablecores);
opendmarc/opendmarc.c: &conf->conf_spfignoreresults,
opendmarc/opendmarc.c: sizeof conf->conf_spfignoreresults);
opendmarc/opendmarc.c: &conf->conf_spfselfvalidate,
opendmarc/opendmarc.c: sizeof conf->conf_spfselfvalidate);
opendmarc/opendmarc.c: &conf->conf_rejectfail,
opendmarc/opendmarc.c: sizeof conf->conf_rejectfail);
opendmarc/opendmarc.c: &conf->conf_reqhdrs,
opendmarc/opendmarc.c: sizeof conf->conf_reqhdrs);
opendmarc/opendmarc.c: &conf->conf_afrf,
opendmarc/opendmarc.c: sizeof conf->conf_afrf);
opendmarc/opendmarc.c: &conf->conf_reject_multi_from,
opendmarc/opendmarc.c: sizeof conf->conf_reject_multi_from);
opendmarc/opendmarc.c: &conf->conf_afrfnone,
opendmarc/opendmarc.c: sizeof conf->conf_afrfnone);
opendmarc/opendmarc.c: &conf->conf_afrfas,
opendmarc/opendmarc.c: sizeof conf->conf_afrfas);
opendmarc/opendmarc.c: &conf->conf_afrfbcc,
opendmarc/opendmarc.c: sizeof conf->conf_afrfbcc);
opendmarc/opendmarc.c: &conf->conf_recordall,
opendmarc/opendmarc.c: sizeof conf->conf_recordall);
opendmarc/opendmarc.c: &conf->conf_holdquarantinedmessages,
opendmarc/opendmarc.c: sizeof conf->conf_holdquarantinedmessages);
opendmarc/opendmarc.c: &conf->conf_ignoreauthclients,
opendmarc/opendmarc.c: sizeof conf->conf_ignoreauthclients);
opendmarc/opendmarc.c: &conf->conf_reportcmd,
opendmarc/opendmarc.c: sizeof conf->conf_reportcmd);
opendmarc/opendmarc.c: &conf->conf_pslist,
opendmarc/opendmarc.c: sizeof conf->conf_pslist);
opendmarc/opendmarc.c: if (!conf->conf_dolog)
opendmarc/opendmarc.c: (void) config_get(data, "Syslog", &conf->conf_dolog,
opendmarc/opendmarc.c: sizeof conf->conf_dolog);
opendmarc/opendmarc.c: if (!conf->conf_addswhdr)
opendmarc/opendmarc.c: &conf->conf_addswhdr,
opendmarc/opendmarc.c: sizeof conf->conf_addswhdr);
opendmarc/opendmarc.c: &conf->conf_historyfile,
opendmarc/opendmarc.c: sizeof conf->conf_historyfile);
opendmarc/opendmarc.c: if (conf->conf_trustedauthservids == NULL &&
opendmarc/opendmarc.c: conf->conf_authservid != NULL)
opendmarc/opendmarc.c: dmarcf_mkarray(conf->conf_authservid, ",",
opendmarc/opendmarc.c: &conf->conf_trustedauthservids);
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_domainwhitelisthashcount = 0;
opendmarc/opendmarc.c: if (!dmarcf_addlist_csv(whitelist, ",", &conf->conf_domainwhitelist))
opendmarc/opendmarc.c: &conf->conf_domainwhitelist))
opendmarc/opendmarc.c: for (cur = conf->conf_domainwhitelist;
opendmarc/opendmarc.c: conf->conf_domainwhitelisthashcount++;
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_refcnt == 0)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: curconf->conf_refcnt++;
opendmarc/opendmarc.c: if (conf->conf_copyfailsto != NULL)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_refcnt--;
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: curconf->conf_refcnt++;
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (!conf->conf_spfselfvalidate)
opendmarc/opendmarc.c: if (conf->conf_ignoreauthclients &&
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (no_i_whine && conf->conf_dolog)
opendmarc/opendmarc.c: authservid = conf->conf_authservid;
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_reqhdrs && reqhdrs_error != NULL)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_reject_multi_from)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_reqhdrs)
opendmarc/opendmarc.c: if (conf->conf_ignoredomains != NULL &&
opendmarc/opendmarc.c: dmarcf_match(domain, conf->conf_ignoredomains, TRUE))
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: (conf->conf_trustedauthservids == NULL ||
opendmarc/opendmarc.c: !dmarcf_match(ar.ares_host, conf->conf_trustedauthservids,
opendmarc/opendmarc.c: if (!conf->conf_authservidwithjobid)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: (conf->conf_trustedauthservids == NULL ||
opendmarc/opendmarc.c: conf->conf_trustedauthservids,
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: && !conf->conf_spfignoreresults
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_domainwhitelisthashcount > 0)
opendmarc/opendmarc.c: && !conf->conf_spfignoreresults
opendmarc/opendmarc.c: if (conf->conf_spfselfvalidate)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: (conf->conf_afrfnone && policy == DMARC_POLICY_NONE)) &&
opendmarc/opendmarc.c: conf->conf_afrf &&
opendmarc/opendmarc.c: (conf->conf_afrfbcc != NULL || ruv != NULL))
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_afrfas != NULL)
opendmarc/opendmarc.c: conf->conf_afrfas);
opendmarc/opendmarc.c: if (conf->conf_afrfbcc != NULL)
opendmarc/opendmarc.c: conf->conf_afrfbcc);
opendmarc/opendmarc.c: if (ruv != NULL && conf->conf_afrfbcc != NULL)
opendmarc/opendmarc.c: conf->conf_afrfbcc);
opendmarc/opendmarc.c: out = popen(conf->conf_reportcmd, "w");
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (status != 0 && conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_rejectfail &&
opendmarc/opendmarc.c: if (status != MI_SUCCESS && conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_copyfailsto != NULL)
opendmarc/opendmarc.c: status = dmarcf_addrcpt(ctx, conf->conf_copyfailsto);
opendmarc/opendmarc.c: if (status != MI_SUCCESS && conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_rejectfail && conf->conf_holdquarantinedmessages && random() % 100 < pct)
opendmarc/opendmarc.c: if (status != MI_SUCCESS && conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_copyfailsto != NULL)
opendmarc/opendmarc.c: status = dmarcf_addrcpt(ctx, conf->conf_copyfailsto);
opendmarc/opendmarc.c: if (status != MI_SUCCESS && conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_authservidwithjobid ? "/" : "",
opendmarc/opendmarc.c: conf->conf_authservidwithjobid ? dfc->mctx_jobid : "",
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: if (conf->conf_historyfile != NULL &&
opendmarc/opendmarc.c: (conf->conf_recordall || ostatus != DMARC_DNS_ERROR_NO_RECORD))
opendmarc/opendmarc.c: f = fopen(conf->conf_historyfile, "a");
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_historyfile,
opendmarc/opendmarc.c: conf->conf_historyfile,
opendmarc/opendmarc.c: if (ferror(f) && conf->conf_dolog)
opendmarc/opendmarc.c: conf->conf_historyfile,
opendmarc/opendmarc.c: conf->conf_historyfile,
opendmarc/opendmarc.c: if (conf->conf_addswhdr)
opendmarc/opendmarc.c: if (conf->conf_dolog)
opendmarc/opendmarc.c: assert(conf->conf_refcnt == 0);
opendmarc/opendmarc.c: if (conf->conf_data != NULL)
opendmarc/opendmarc.c: config_free(conf->conf_data);
opendmarc/opendmarc.c: if (conf->conf_ignoredomains != NULL)
opendmarc/opendmarc.c: dmarcf_freearray(conf->conf_ignoredomains);
opendmarc/opendmarc.c: if (conf->conf_trustedauthservids != NULL)
opendmarc/opendmarc.c: dmarcf_freearray(conf->conf_trustedauthservids);
opendmarc/opendmarc.c: if (conf->conf_authservid != NULL)
opendmarc/opendmarc.c: free(conf->conf_authservid);
opendmarc/opendmarc.c: if (conf->conf_domainwhitelisthashcount > 0)
opendmarc/opendmarc.c: dmarcf_freelist(conf->conf_domainwhitelist);
opendmarc/opendmarc.c: curconf->conf_dolog = TRUE;
opendmarc/opendmarc.c: dolog = curconf->conf_dolog;
opendmarc/opendmarc.c: curconf->conf_data = cfg;
opendmarc/opendmarc.c: curconf->conf_dolog = FALSE;
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_enablecores)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: curconf->conf_dolog);
opendmarc/opendmarc.c: curconf->conf_dolog);
opendmarc/opendmarc.c: if (wpid != -1 && curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_pslist != NULL)
opendmarc/opendmarc.c: strncpy(libopendmarc.tld_source_file, curconf->conf_pslist,
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: curconf->conf_trustedauthservids != NULL &&
opendmarc/opendmarc.c: curconf->conf_trustedauthservids[c] != NULL;
opendmarc/opendmarc.c: curconf->conf_trustedauthservids[c],
opendmarc/opendmarc.c: curconf->conf_trustedauthservids[c],
opendmarc/opendmarc.c: if (curconf->conf_dolog)
opendmarc/opendmarc.c: if (curconf->conf_dolog)