Skip to content

Commit

Permalink
Merge pull request #9 from nikolasgd/master
Browse files Browse the repository at this point in the history
Removed deprecation warning „constant OpenSSL::Cipher::Cipher is deprecated“
  • Loading branch information
vanaltj authored Feb 24, 2019
2 parents 12c3648 + 1c707aa commit 001f778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ source "http://rubygems.org"
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "test-unit"
gem "shoulda"
gem "bundler"
gem "jeweler"
Expand Down
2 changes: 1 addition & 1 deletion lib/aes/aes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _handle_padding

# Create a new cipher using the cipher type specified
def _setup(action)
@cipher ||= OpenSSL::Cipher::Cipher.new(@options[:cipher])
@cipher ||= OpenSSL::Cipher.new(@options[:cipher])
# Toggles encryption mode
@cipher.send(action)
@cipher.padding = @options[:padding]
Expand Down

0 comments on commit 001f778

Please sign in to comment.