]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Add DKIM signing key API for flexible ARC signing
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 15 Oct 2025 15:30:53 +0000 (16:30 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 15 Oct 2025 15:30:53 +0000 (16:30 +0100)
commit0b5968b23ccee5f10de47ca14733af7abab9a8aa
treeee5943322d74324c15a2100765f34a6ea7f1bf64
parent8e28b10df99c8a221434286ad463edd1dceb4ae6
[Feature] Add DKIM signing key API for flexible ARC signing

Implements new C API for DKIM signing operations:
- rspamd_plugins.dkim.load_sign_key() - loads signing key
- rspamd_plugins.dkim.sign_key_get_alg() - detects key algorithm
- rspamd_plugins.dkim.sign_digest() - signs digest with loaded key

Updates ARC module to use new API for proper ed25519 and RSA support.
Adds comprehensive tests and improved signing eligibility diagnostics.
12 files changed:
lualib/lua_dkim_tools.lua
src/libserver/dkim.c
src/libserver/dkim.h
src/plugins/dkim_check.c
src/plugins/lua/arc.lua
test/functional/cases/320_arc_signing/003_roundtrip.robot [new file with mode: 0644]
test/functional/cases/320_arc_signing/004_ed25519.robot [new file with mode: 0644]
test/functional/configs/arc_signing/ed25519.conf [new file with mode: 0644]
test/functional/configs/arc_signing/roundtrip.conf [new file with mode: 0644]
test/functional/configs/dkim_ed25519.key [new file with mode: 0644]
test/functional/configs/plugins.conf
test/functional/messages/dmarc/ed25519_from.eml [new file with mode: 0644]