-
Notifications
You must be signed in to change notification settings - Fork 3k
add missing verify_fun mfa translation #9692
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
base: master
Are you sure you want to change the base?
Conversation
inet_tls_dist is missing a configuration translation for verify_fun from an mfa tuple to a closure that can be called during ssl_handshake.
Dan Janowski seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
CT Test Results 2 files 66 suites 27m 1s ⏱️ For more details on these failures, see this check. Results for commit 0573dc6. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
Sorry, I don't understand what this change enables that cannot be done already. The existing |
Ah I forgot something. This change is to support -ssl_dist_optfile that looks like:
These quasi-mfa verify_fun tuples are turned into the closure functions by this patch. The existing code was ignoring/passing over the verify_fun of this form. This form is based on what I got out of the Erlang Distribution over TLS |
@danj3 I do not think you should base your new code on how legacy option handling was done. The latest version of the documentation that you are referring to, of erlang distribution, clearly states: |
@IngelaAndin wrote:
I'd say that the documentaion is correct. There was/is a conversion for a command line option It is a conversion done for the clumsy legacy command line options, not needed from an |
Well, even if the doc is correct why do new things that takes in consideration old legacy thing that we do not recommend using. |
I just pointed out that the documentation is not incorrect. I see no point in adding support for this legacy format to |
I agree that supporting the legacy verify_fun option in the optfile is pointless. I added an ssl doc section and reverted the code change in the #9691 the pr to make very clear the specific use of verify_fun in the optfile. While the example is implied by the existing documentation, a concrete example of this kind would have saved me considerable time. I can update this PR as well at your request, as well as any content changes to the doc. |
inet_tls_dist is missing a configuration translation for verify_fun from an mfa tuple to a closure that can be called during ssl_handshake.
@IngelaAndin This is the missing verify_fun translation I spoke of, applied to master