Skip to content

Commit

Permalink
Also require signing config when no mode is set
Browse files Browse the repository at this point in the history
In this situation the milter will arbitrarily decide which mode to use
based on the IP, so it needs all of the signing bits to be defined.
  • Loading branch information
flowerysong committed Feb 12, 2024
1 parent 332dfdc commit 20df719
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,10 @@ arcf_config_load(struct config *data, struct arcf_config *conf,
conf->conf_signalg = ARC_SIGN_RSASHA256;
}

if ((conf->conf_mode & ARC_MODE_SIGN))
/* No explicit mode means we might need to sign, so these are
* still required.
*/
if ((!conf->conf_mode) || (conf->conf_mode & ARC_MODE_SIGN))
{
if (config_get(data, "Domain",
&conf->conf_domain,
Expand Down

0 comments on commit 20df719

Please sign in to comment.