~ubuntu-branches/ubuntu/wily/ruby-net-ssh/wily-proposed

« back to all changes in this revision

Viewing changes to lib/net/ssh/errors.rb

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2013-07-06 21:04:36 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130706210436-upawz07o9tb9h1pj
Tags: 1:2.6.7-1
* Team upload.
* New upstream release
  - debian/patches/disable-rubygems-in-tests.patch: Refreshed
* debian/control: Drop the transitional packages
* debian/control: Bump Standards-Version to 3.9.4 (no further changes)
* debian/patches/skip-test-broken-on-1.8.patch: Also disable
  test_from_should_measure_bytesize_of_utf_8_string_correctly check with
  ruby 1.8
* debian/patches:
  - Drop disable-test1.patch: The test is passing with ruby-test-unit 2.5.5
  - Drop disable-config-tests.patch: The input config is now existing
  - Drop fix-test-inheritance.patch: Tests are running as expected now

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    end
36
36
  end
37
37
 
38
 
  # Raised when the cached key for a particular host does not match the
39
 
  # key given by the host, which can be indicative of a man-in-the-middle
40
 
  # attack. When rescuing this exception, you can inspect the key fingerprint
41
 
  # and, if you want to proceed anyway, simply call the remember_host!
42
 
  # method on the exception, and then retry.
43
 
  class HostKeyMismatch < Exception
 
38
  # Base class for host key exceptions. When rescuing this exception, you can
 
39
  # inspect the key fingerprint and, if you want to proceed anyway, simply call
 
40
  # the remember_host! method on the exception, and then retry.
 
41
  class HostKeyError < Exception
44
42
    # the callback to use when #remember_host! is called
45
43
    attr_writer :callback #:nodoc:
46
44
 
85
83
      @callback.call
86
84
    end
87
85
  end
88
 
end; end
 
 
b'\\ No newline at end of file'
 
86
 
 
87
  # Raised when the cached key for a particular host does not match the
 
88
  # key given by the host, which can be indicative of a man-in-the-middle
 
89
  # attack. When rescuing this exception, you can inspect the key fingerprint
 
90
  # and, if you want to proceed anyway, simply call the remember_host!
 
91
  # method on the exception, and then retry.
 
92
  class HostKeyMismatch < HostKeyError; end
 
93
 
 
94
  # Raised when there is no cached key for a particular host, which probably
 
95
  # means that the host has simply not been seen before.
 
96
  # When rescuing this exception, you can inspect the key fingerprint and, if
 
97
  # you want to proceed anyway, simply call the remember_host! method on the
 
98
  # exception, and then retry.
 
99
  class HostKeyUnknown < HostKeyError; end
 
100
end; end