Backport: 5x -> 2x ARH checking and code structure #496
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I followed your changes to separate the code for "cached results" and "ARH checking" to different modules.
Additionally, I backported the change to not check the AUID anymore, after reading the RFC.
But, I don't understand your changes to setting SDID and AUID for ARHs:
Instead of always complementing SDID and AUID, it's only done, if the ARH result replaces DKIM verification.
At the moment, my code follows the old behavior to complement SDID/AUID and I've copied your check method, which will do the same. Depending on your reply, I'll remove the code in one place.
As SDID may be undefined in the case, that neither SDID nor AUID is defined, in any case, we'll probably need to change the SUCCESS message. (I didn't have any real world mail and just realized this, checking your new test cases)
Other topic: I didn't backport the changes to the libunbound files. I couldn't get it working, trying to backport the changes.
And I hope, I didn't miss anything