Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libopendkim: Expose dkim_code_to_name() and dkim_name_to_code() with tables #207

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

futatuki
Copy link

Before OpenDKIM 1.2.0, dkim_code_to_name() , dim_name_to_code() and nametables for conversion had been hidden from outside of the library as a part of global name consolidation.

However as a result of it, users of the libopendkim must maintain their own conversion tables if it is needed. Actually opendkim milter itself has its own conversion table for dkim_alg_t and dkim_canon_t. I think it is very waistful.

And when I've extended opendkim-testkey utility for supporting new KeyTable format, it also got need a conversion from name to dkim_alg_t.

So I want those conversion functions and nametables, at least those nametables for the constants which is already exposed in dkim.h, to expose outside of library.

For enable to change the structure of nametable without changing API,
the structure of nametable itself is not exposed. However, as there is some use case that need enumerating all items in the table, functions for iteration on the tables are also added.

futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Mar 23, 2024
futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Mar 24, 2024
futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Apr 9, 2024
futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Apr 26, 2024
…-expose-nametables

Expose dkim_code_to_name() and dkim_name_to_code() with tables
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