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

Resolve upcoming OpenSSL Ruby library deprecation of algorithm constants #1860

Merged
merged 1 commit into from Jun 4, 2020

Commits on Jun 1, 2020

  1. resolve openssl deprecation, Rubocop: Lint/DeprecatedOpenSSLConstant

    > Lint/DeprecatedOpenSSLConstant:
    >   Use OpenSSL::Digest.hexdigest('MD5', key_in_der_format) instead of
    >   OpenSSL::Digest::MD5.hexdigest(key_in_der_format).
    
    Rubocop has a new cop[1] that detects an upcoming deprecation to the
    OpenSSL gem[2] that's built into Ruby.
    
    [1] rubocop/rubocop#7950
    [2] ruby/openssl#366
    
    The previous constant will cause failures in Ruby 3.
    
    Signed-off-by: Tim Smith <tsmith@chef.io>
    Signed-off-by: Robb Kidd <rkidd@chef.io>
    tas50 authored and robbkidd committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    b021488 View commit details
    Browse the repository at this point in the history