Skip to content

Commit 6b7d21b

Browse files
committed
Remove unused base64 requires to fix Ruby 3.3 warning
The previous PR net-ssh#932 refactored the code to no longer use the Base64 module, but forgot to remove the actual `require "base64"` statements. This follow up commit removes those requires to fix the following warning on Ruby 3.3: > net/ssh/known_hosts.rb:3: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec. Also contact author of net-ssh-7.2.2.rc1 to add base64 into its gemspec.
1 parent 2a66440 commit 6b7d21b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

lib/net/ssh/authentication/ed25519.rb

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
require 'ed25519'
55

6-
require 'base64'
7-
86
require 'net/ssh/transport/cipher_factory'
97
require 'net/ssh/authentication/pub_key_fingerprint'
108
require 'bcrypt_pbkdf' unless RUBY_PLATFORM == "java"

lib/net/ssh/known_hosts.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require 'strscan'
22
require 'openssl'
3-
require 'base64'
43
require 'delegate'
54
require 'net/ssh/buffer'
65
require 'net/ssh/authentication/ed25519_loader'

0 commit comments

Comments
 (0)