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

Lint/DeprecatedOpenSSLConstant wrongly corrects OpenSSL::Cipher::RC4.new to OpenSSL::Cipher.new('rc4-cbc') #9492

Closed
allenwu1973 opened this issue Feb 5, 2021 · 0 comments · Fixed by #9494
Labels

Comments

@allenwu1973
Copy link

Expected behavior

OpenSSL::Cipher::RC4.new

should be corrected to

OpenSSL::Cipher.new('rc4')

Actual behavior

Corrected to

OpenSSL::Cipher.new('rc4-cbc') 

Which cause

RuntimeError (unsupported cipher algorithm (rc4-cbc))

Steps to reproduce the problem

OpenSSL::Cipher.new('rc4-cbc') 

RuboCop version

1.9.1

@koic koic added the bug label Feb 5, 2021
koic added a commit to koic/rubocop that referenced this issue Feb 5, 2021
…OpenSSLConstant`

Fixes rubocop#9492.

This PR fixes an incorrect auto-correct for `Lint/DeprecatedOpenSSLConstant`
when using no argument algorithm.
bbatsov pushed a commit that referenced this issue Feb 8, 2021
…Constant`

Fixes #9492.

This PR fixes an incorrect auto-correct for `Lint/DeprecatedOpenSSLConstant`
when using no argument algorithm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants