-
Notifications
You must be signed in to change notification settings - Fork 175
config: support .include directive #216
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
Conversation
I just applied this patch to the Fedora package and the test suite passes now. Thx for the fix. |
Any chance to have this included in Ruby 2.6? Thx. |
Please note that the ".include" directive is already in use on Fedora 29. |
|
It seems that OpenSSL changed their mind a bit: https://bugzilla.redhat.com/show_bug.cgi?id=1668916 Now the man pages states:
This is a change I am going to include into Fedora [1, 2]:
|
Can interested parties please rebase and update this PR, then we can get it out by the 2.7 release window if it's done this month. |
This is the patch I am using for Ruby 2.7: |
Is there an API we should be using for this? |
OpenSSL 1.1.1 introduces a new '.include' directive. Update our config parser to support that. As mentioned in the referenced GitHub issue, we should use the OpenSSL API instead of implementing the parsing logic ourselves, but it will need backwards-incompatible changes which we can't backport to stable versions. So continue to use the Ruby implementation for now. Squashed in additional changes by Vít Ondruch to support '.include = ' syntax. Reference: ruby#208
I don't think there is any API for this, since - according to Fedora OpenSSL maintainer - the config file is internal format and it should not be re-implemented neither accessed by 3rd parties. More details in #208 and https://bugzilla.redhat.com/show_bug.cgi?id=1610921 |
f46bac1
to
2ad65b5
Compare
Squashed in the changes in the Fedora patch. |
Hello, I have noticed RubyCI require this patch to pass a openssl test on some environments. I will backport the patch shown by @voxik into ruby_2_7 branch. Thank you two all. |
parser to support that. As mentioned in the referenced GitHub issue, we should use the OpenSSL API instead of implementing the parsing logic ourselves, but it will need backwards-incompatible changes which we can't backport to stable versions. So continue to use the Ruby implementation for now. References: ruby/openssl#208 ruby/openssl#216 The original patch was written by Kazuki Yamaguchi <[email protected]> and the patch for ruby_2_7 branch was prepared by Vít Ondruch.
OpenSSL 1.1.1 introduces a new '.include' directive. Update our config
parser to support that.
As mentioned in the referenced GitHub issue, we should use the OpenSSL
API instead of implementing the parsing logic ourselves, but it will
need backwards-incompatible changes which we can't backport to stable
versions. So continue to use the Ruby implementation for now.
Reference: #208
Cc: @voxik