Skip to content

libopendkim/tests: fix t-test205 expected return value - #330

Merged
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:issue-multisign-tests
May 24, 2026
Merged

libopendkim/tests: fix t-test205 expected return value#330
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:issue-multisign-tests

Conversation

@thegushi

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes a wrong assertion in t-test205 introduced in PR libopendkim/tests: add multi-signing unit tests (t-test204, t-test205) #326
  • dkim_eom() returns the status of the best (first passing) signature, not the worst — when Ed25519 passes and RSA is corrupted, the return is DKIM_STAT_OK
  • The per-signature checks via dkim_getsiglist() / DKIM_SIG_CHECK() below that assertion are the correct way to confirm RSA failed and Ed25519 passed independently

The PR description for #326 incorrectly stated that dkim_eom() returns DKIM_STAT_BADSIG when any signature fails; this corrects both the code and that misunderstanding.

Test plan

  • t-test205 passes on FreeBSD 14.4 with OpenSSL 3.x
  • Full gmake check suite passes (all 160+ unit tests + miltertest integration suite)

dkim_eom() returns the status of the best signature, not the worst.
When Ed25519 passes and RSA is corrupted, the return is DKIM_STAT_OK
because a valid signature was found.  The per-sig checks via
dkim_getsiglist() are the correct way to confirm RSA failed and
Ed25519 passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant