Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions libopenarc/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3070,7 +3070,8 @@ arc_set_cv(ARC_MESSAGE *msg, ARC_CHAIN cv)
** domain -- domain name
** key -- secret key, printable
** keylen -- key length
** ar -- Authentication-Results to be enshrined
** ar -- Authentication-Results to be enshrined. It can be NULL,
** which means no results.
**
** Return value:
** An ARC_STAT_* constant.
Expand Down Expand Up @@ -3213,8 +3214,12 @@ arc_getseal(ARC_MESSAGE *msg, ARC_HDRFIELD **seal, char *authservid,
arc_dstring_printf(dstr, "ARC-Authentication-Results:i=%u; %s",
msg->arc_nsets + 1,
msg->arc_authservid);
if (ar != NULL)
if (ar == NULL) {
/* no-result per RFC 8601 2.2 */
arc_dstring_printf(dstr, "; none");
} else {
arc_dstring_printf(dstr, "; %s", (char *) ar);
}

status = arc_parse_header_field(msg, arc_dstring_get(dstr),
arc_dstring_len(dstr), &h);
Expand Down
3 changes: 2 additions & 1 deletion libopenarc/arc.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ extern void arc_set_cv __P((ARC_MESSAGE *, ARC_CHAIN));
** domain -- domain name
** key -- secret key
** keylen -- key length
** ar -- Authentication-Results to be enshrined
** ar -- Authentication-Results to be enshrined. It can be NULL,
** which means no results.
**
** Return value:
** An ARC_STAT_* constant.
Expand Down
2 changes: 1 addition & 1 deletion openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3768,7 +3768,7 @@ mlfi_eom(SMFICTX *ctx)
conf->conf_keylen,
arcf_dstring_len(afc->mctx_tmpstr) > 0
? arcf_dstring_get(afc->mctx_tmpstr)
: NULL);
: "none");
if (status != ARC_STAT_OK)
{
if (conf->conf_dolog)
Expand Down