class Net::SSH::Verifiers::Always

def verify(arguments)

def verify(arguments)
  host_keys = arguments[:session].host_keys
  # We've never seen this host before, so raise an exception.
  process_cache_miss(host_keys, arguments, HostKeyUnknown, "is unknown") if host_keys.empty?
  # If we found any matches, check to see that the key type and
  # blob also match.
  found = host_keys.any? do |key|
    if key.respond_to?(:matches_key?)
      key.matches_key?(arguments[:key])
    else
      key.ssh_type == arguments[:key].ssh_type && key.to_blob == arguments[:key].to_blob
    end
  end
  # If a match was found, return true. Otherwise, raise an exception
  # indicating that the key was not recognized.
  process_cache_miss(host_keys, arguments, HostKeyMismatch, "does not match") unless found
  found
end