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

Support for Ruby 2.5.0 fixing OpenSSL warning #9576 #9598

Closed
wants to merge 1 commit into from

Conversation

denisse-dev
Copy link
Contributor

This change removes the SSL warning with Ruby 2.5.0 that was referenced from issue #9576

Warning:
/opt/metasploit/lib/msf/core/opt.rb:55: warning: constant OpenSSL::SSL::SSLContext::METHODS is deprecated

Replaced:
OpenSSL::SSL::SSLContext::METHODS

With
[:TLSv1_2, :TLSv1_1, :TLSv1, :SSLv3, :SSLv23, :SSLv2]

@denisse-dev denisse-dev changed the title Support for Ruby 2.5.0 fixing OpenSSL warnings #9576 Support for Ruby 2.5.0 fixing OpenSSL warning #9576 Feb 21, 2018
@sempervictus
Copy link
Contributor

Umm, is that a good idea? I doubt the binary openssl implementation is looking to do v2. Is this call used anywhere to determine the capabilities of the local lib, or just to enumerate these values?

@jmartin-tech
Copy link
Contributor

I agree with @sempervictus, it would be nice to pull a more dynamic list from the gem as the old method did. Maybe there is some way we can generate this list still.

Looking at the latest 2.5.0 openssl gem this constant is now provided from an private_constant:

METHODS_MAP.flat_map { |name,|
        [name, :"#{name}_client", :"#{name}_server"]
      }.freeze

@jmartin-tech
Copy link
Contributor

It is required that code in your fork be merged from a unique branch in your repository to master in Rapid7's. Please create a new branch in your fork of framework and resubmit this from that branch.

git checkout -b <BRANCH_NAME>
git push <your_fork_remote> <BRANCH_NAME>

This helps protect the process, ensure users are aware of commits on the branch being considered for merge, allows for a location for more commits to be offered without mingling with other contributor changes and allows contributors to make progress while a PR is still being reviews.

Closing based on the this requirement, please do resubmit from a unique branch.

@maxrep66
Copy link

de-edra how can i chage it and whre ?? how can i do what u say can u explain to me a little better pls

thx very much

@busterb
Copy link
Member

busterb commented Mar 26, 2018

Hi, I'm going to fix this up, since we do need this PR in the tree.

@busterb
Copy link
Member

busterb commented Mar 26, 2018

I'm adding support for Ruby 2.5 first by adding underlying helper methods to rex-socket:
rapid7/rex-socket#11

@busterb
Copy link
Member

busterb commented Mar 26, 2018

Thanks @da-edra , I improved your change in a new PR here: #9762

@busterb busterb closed this Mar 26, 2018
@maxrep66
Copy link

maxrep66 commented Mar 29, 2018 via email

@busterb
Copy link
Member

busterb commented Mar 29, 2018

Please don't post off-topic comments on closed tickets.

@maxrep66
Copy link

maxrep66 commented Mar 29, 2018 via email

@rapid7 rapid7 locked as off-topic and limited conversation to collaborators Mar 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants