Skip to content

libopendkim: declare dkim_error and dkim_get_key in dkim-internal.h (fixes #413) - #432

Merged
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:fix/issue-413-dkim-error-header-decl
Jul 23, 2026
Merged

libopendkim: declare dkim_error and dkim_get_key in dkim-internal.h (fixes #413)#432
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:fix/issue-413-dkim-error-header-decl

Conversation

@thegushi

Copy link
Copy Markdown
Collaborator

Summary

  • dkim_error() is defined in libopendkim/dkim.c but was declared via a matching file-local extern copied into dkim-report.c, dkim-keys.c, dkim-canon.c, dkim-util.c, and dkim-atps.c instead of a shared header.
  • dkim_get_key() had the same problem, with its own local extern in dkim-test.c.
  • Adds both prototypes to libopendkim/dkim-internal.h (already included by all affected files) and removes the six redundant local declarations.

Fixes #413.

Test plan

  • Built cleanly on FreeBSD (Clang) via autoreconf -fi && ./configure && gmake in libopendkim/ with no new errors or warnings.

…ixes trusteddomainproject#413)

Both functions were only reachable via matching file-local extern
declarations copied into five (dkim_error) and one (dkim_get_key)
source files. Centralize them in dkim-internal.h, which all of those
files already include, and drop the redundant copies.
@thegushi
thegushi merged commit f657232 into trusteddomainproject:develop Jul 23, 2026
2 checks 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