Sha256: fdc0942f1a1f9bf8e6516d9f6f4eea7d5248d1a3121f463b2c407f34fae88d0d

Contents?: true

Size: 439 Bytes

Versions: 7

Compression:

Stored size: 439 Bytes

Contents

module Net; module SSH; module Authentication

# Loads ED25519 support which requires optinal dependecies like
# rbnacl-libsodium, rbnacl, bcrypt_pbkdf
module ED25519Loader

begin
  require 'net/ssh/authentication/ed25519'
  LOADED = true
  ERROR = nil
rescue LoadError => e
  ERROR = e
  LOADED = false
end

def self.raiseUnlessLoaded(message)
  raise NotImplementedError, "#{message} -- see #{ERROR}" unless LOADED
end

end
end; end; end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
net-ssh-4.0.0 lib/net/ssh/authentication/ed25519_loader.rb
net-ssh-4.0.0.rc3 lib/net/ssh/authentication/ed25519_loader.rb
net-ssh-4.0.0.rc2 lib/net/ssh/authentication/ed25519_loader.rb
net-ssh-4.0.0.rc1 lib/net/ssh/authentication/ed25519_loader.rb
net-ssh-4.0.0.beta4 lib/net/ssh/authentication/ed25519_loader.rb
net-ssh-4.0.0.beta3 lib/net/ssh/authentication/ed25519_loader.rb
net-ssh-4.0.0.beta2 lib/net/ssh/authentication/ed25519_loader.rb