net-ssh 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. data/doc/LICENSE-BSD +1 -1
  2. data/doc/LICENSE-RUBY +1 -1
  3. data/doc/manual-html/chapter-1.html +4 -4
  4. data/doc/manual-html/chapter-2.html +2 -2
  5. data/doc/manual-html/chapter-3.html +2 -2
  6. data/doc/manual-html/chapter-4.html +2 -2
  7. data/doc/manual-html/chapter-5.html +2 -2
  8. data/doc/manual-html/chapter-6.html +2 -2
  9. data/doc/manual-html/chapter-7.html +2 -2
  10. data/doc/manual-html/index.html +2 -2
  11. data/doc/manual/parts/0003.txt +1 -1
  12. data/doc/manual/parts/0005.txt +1 -1
  13. data/examples/channel-demo.rb +1 -1
  14. data/examples/port-forward.rb +1 -1
  15. data/examples/process-demo.rb +1 -1
  16. data/examples/remote-net-port-forward.rb +1 -1
  17. data/examples/remote-port-forward.rb +1 -1
  18. data/examples/shell-demo.rb +1 -1
  19. data/examples/ssh-client.rb +1 -1
  20. data/examples/sync-shell-demo.rb +1 -1
  21. data/examples/tail-demo.rb +1 -1
  22. data/lib/net/ssh.rb +1 -1
  23. data/lib/net/ssh/connection/channel.rb +1 -1
  24. data/lib/net/ssh/connection/constants.rb +1 -1
  25. data/lib/net/ssh/connection/driver.rb +1 -1
  26. data/lib/net/ssh/connection/services.rb +1 -1
  27. data/lib/net/ssh/connection/term.rb +1 -1
  28. data/lib/net/ssh/errors.rb +1 -1
  29. data/lib/net/ssh/proxy/errors.rb +1 -1
  30. data/lib/net/ssh/proxy/http.rb +1 -1
  31. data/lib/net/ssh/proxy/socks4.rb +1 -1
  32. data/lib/net/ssh/proxy/socks5.rb +1 -1
  33. data/lib/net/ssh/service/forward/driver.rb +1 -1
  34. data/lib/net/ssh/service/forward/local-network-handler.rb +1 -1
  35. data/lib/net/ssh/service/forward/remote-network-handler.rb +1 -1
  36. data/lib/net/ssh/service/forward/services.rb +1 -1
  37. data/lib/net/ssh/service/process/driver.rb +1 -1
  38. data/lib/net/ssh/service/process/open.rb +1 -1
  39. data/lib/net/ssh/service/process/popen3.rb +1 -1
  40. data/lib/net/ssh/service/process/services.rb +1 -1
  41. data/lib/net/ssh/service/services.rb +1 -1
  42. data/lib/net/ssh/service/shell/driver.rb +1 -1
  43. data/lib/net/ssh/service/shell/services.rb +1 -1
  44. data/lib/net/ssh/service/shell/shell.rb +1 -1
  45. data/lib/net/ssh/service/shell/sync.rb +1 -1
  46. data/lib/net/ssh/session.rb +1 -1
  47. data/lib/net/ssh/transport/algorithm-negotiator.rb +1 -1
  48. data/lib/net/ssh/transport/compress/compressor.rb +1 -1
  49. data/lib/net/ssh/transport/compress/decompressor.rb +1 -1
  50. data/lib/net/ssh/transport/compress/none-compressor.rb +1 -1
  51. data/lib/net/ssh/transport/compress/none-decompressor.rb +1 -1
  52. data/lib/net/ssh/transport/compress/services.rb +1 -1
  53. data/lib/net/ssh/transport/compress/zlib-compressor.rb +1 -1
  54. data/lib/net/ssh/transport/compress/zlib-decompressor.rb +1 -1
  55. data/lib/net/ssh/transport/constants.rb +1 -1
  56. data/lib/net/ssh/transport/errors.rb +1 -1
  57. data/lib/net/ssh/transport/identity-cipher.rb +1 -1
  58. data/lib/net/ssh/transport/kex/dh-gex.rb +1 -1
  59. data/lib/net/ssh/transport/kex/dh.rb +1 -1
  60. data/lib/net/ssh/transport/kex/services.rb +1 -1
  61. data/lib/net/ssh/transport/ossl/buffer-factory.rb +1 -1
  62. data/lib/net/ssh/transport/ossl/buffer.rb +1 -1
  63. data/lib/net/ssh/transport/ossl/cipher-factory.rb +1 -1
  64. data/lib/net/ssh/transport/ossl/digest-factory.rb +1 -1
  65. data/lib/net/ssh/transport/ossl/hmac-factory.rb +1 -1
  66. data/lib/net/ssh/transport/ossl/hmac/hmac.rb +1 -1
  67. data/lib/net/ssh/transport/ossl/hmac/md5-96.rb +1 -1
  68. data/lib/net/ssh/transport/ossl/hmac/md5.rb +1 -1
  69. data/lib/net/ssh/transport/ossl/hmac/none.rb +1 -1
  70. data/lib/net/ssh/transport/ossl/hmac/services.rb +1 -1
  71. data/lib/net/ssh/transport/ossl/hmac/sha1-96.rb +1 -1
  72. data/lib/net/ssh/transport/ossl/hmac/sha1.rb +1 -1
  73. data/lib/net/ssh/transport/ossl/key-factory.rb +1 -1
  74. data/lib/net/ssh/transport/ossl/services.rb +1 -1
  75. data/lib/net/ssh/transport/packet-stream.rb +1 -1
  76. data/lib/net/ssh/transport/services.rb +1 -1
  77. data/lib/net/ssh/transport/session.rb +1 -1
  78. data/lib/net/ssh/transport/version-negotiator.rb +1 -1
  79. data/lib/net/ssh/userauth/agent.rb +1 -1
  80. data/lib/net/ssh/userauth/constants.rb +1 -1
  81. data/lib/net/ssh/userauth/driver.rb +1 -1
  82. data/lib/net/ssh/userauth/methods/hostbased.rb +1 -1
  83. data/lib/net/ssh/userauth/methods/keyboard-interactive.rb +1 -1
  84. data/lib/net/ssh/userauth/methods/password.rb +1 -1
  85. data/lib/net/ssh/userauth/methods/publickey.rb +1 -1
  86. data/lib/net/ssh/userauth/methods/services.rb +1 -1
  87. data/lib/net/ssh/userauth/pageant.rb +1 -1
  88. data/lib/net/ssh/userauth/services.rb +1 -1
  89. data/lib/net/ssh/userauth/userkeys.rb +1 -1
  90. data/lib/net/ssh/util/buffer.rb +1 -1
  91. data/lib/net/ssh/util/openssl.rb +1 -1
  92. data/lib/net/ssh/util/prompter.rb +1 -1
  93. data/lib/net/ssh/version.rb +2 -2
  94. data/test/ALL-TESTS.rb +2 -5
  95. data/test/connection/tc_channel.rb +2 -2
  96. data/test/connection/tc_driver.rb +2 -2
  97. data/test/connection/tc_integration.rb +2 -2
  98. data/test/proxy/tc_http.rb +2 -2
  99. data/test/proxy/tc_socks4.rb +2 -2
  100. data/test/proxy/tc_socks5.rb +2 -2
  101. data/test/service/forward/tc_driver.rb +2 -2
  102. data/test/service/forward/tc_local_network_handler.rb +2 -2
  103. data/test/service/forward/tc_remote_network_handler.rb +2 -2
  104. data/test/service/process/tc_driver.rb +2 -2
  105. data/test/service/process/tc_integration.rb +2 -2
  106. data/test/service/process/tc_open.rb +2 -2
  107. data/test/service/process/tc_popen3.rb +2 -2
  108. data/test/tc_integration.rb +2 -2
  109. data/test/transport/compress/tc_none_compress.rb +2 -2
  110. data/test/transport/compress/tc_none_decompress.rb +2 -2
  111. data/test/transport/compress/tc_zlib_compress.rb +2 -2
  112. data/test/transport/compress/tc_zlib_decompress.rb +2 -2
  113. data/test/transport/kex/tc_dh.rb +12 -11
  114. data/test/transport/kex/tc_dh_gex.rb +3 -3
  115. data/test/transport/ossl/hmac/tc_hmac.rb +2 -2
  116. data/test/transport/ossl/hmac/tc_md5.rb +2 -2
  117. data/test/transport/ossl/hmac/tc_md5_96.rb +2 -2
  118. data/test/transport/ossl/hmac/tc_none.rb +2 -2
  119. data/test/transport/ossl/hmac/tc_sha1.rb +2 -2
  120. data/test/transport/ossl/hmac/tc_sha1_96.rb +2 -2
  121. data/test/transport/ossl/tc_buffer.rb +2 -2
  122. data/test/transport/ossl/tc_buffer_factory.rb +2 -2
  123. data/test/transport/ossl/tc_cipher_factory.rb +2 -2
  124. data/test/transport/ossl/tc_digest_factory.rb +2 -2
  125. data/test/transport/ossl/tc_hmac_factory.rb +2 -2
  126. data/test/transport/ossl/tc_key_factory.rb +2 -2
  127. data/test/transport/tc_algorithm_negotiator.rb +2 -2
  128. data/test/transport/tc_identity_cipher.rb +2 -2
  129. data/test/transport/tc_integration.rb +2 -2
  130. data/test/transport/tc_packet_stream.rb +2 -2
  131. data/test/transport/tc_session.rb +2 -2
  132. data/test/transport/tc_version_negotiator.rb +2 -2
  133. data/test/userauth/methods/tc_hostbased.rb +2 -2
  134. data/test/userauth/methods/tc_password.rb +2 -2
  135. data/test/userauth/methods/tc_publickey.rb +2 -2
  136. data/test/userauth/tc_agent.rb +2 -2
  137. data/test/userauth/tc_driver.rb +2 -2
  138. data/test/userauth/tc_integration.rb +2 -2
  139. data/test/userauth/tc_userkeys.rb +2 -2
  140. data/test/util/tc_buffer.rb +2 -2
  141. metadata +252 -249
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/connection/driver'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../lib"
18
18
 
19
19
  if $run_integration_tests || __FILE__ == $0
20
20
 
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/proxy/http'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/proxy/socks4'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/proxy/socks5'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/service/forward/driver'
20
20
  require 'net/ssh/util/buffer'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/service/forward/local-network-handler'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/service/forward/remote-network-handler'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/service/process/driver'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  if $run_integration_tests || __FILE__ == $0
20
20
 
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/service/process/open'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'test/unit'
20
20
  require 'net/ssh/service/process/popen3'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../lib"
18
18
 
19
19
  if $run_integration_tests || __FILE__ == $0
20
20
 
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/compress/none-compressor'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/compress/none-decompressor'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/compress/zlib-compressor'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/compress/zlib-decompressor'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
 
19
19
  require 'net/ssh/errors'
20
20
  require 'net/ssh/transport/kex/dh'
@@ -24,16 +24,17 @@ require 'ostruct'
24
24
 
25
25
  class TC_KEX_DH < Test::Unit::TestCase
26
26
 
27
- unless defined?( MockDH )
28
- MockDH = Struct.new( :valid?, :p, :g, :priv_key, :pub_key )
29
- class MockDH
30
- def compute_key( num )
31
- num
32
- end
27
+ class MockDH < Struct.new( :valid, :p, :g, :priv_key, :pub_key )
28
+ def valid?
29
+ valid
30
+ end
31
+
32
+ def compute_key( num )
33
+ num
34
+ end
33
35
 
34
- def generate_key!
35
- self.pub_key = MockBN.new( priv_key )
36
- end
36
+ def generate_key!
37
+ self.pub_key = MockBN.new( priv_key )
37
38
  end
38
39
  end
39
40
 
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,10 +14,10 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
18
18
  $:.unshift File.dirname( __FILE__ )
19
19
 
20
- require 'tc_dh'
20
+ require 'tc_dh' unless defined?(TC_KEX_DH)
21
21
 
22
22
  require 'net/ssh/errors'
23
23
  require 'net/ssh/transport/kex/dh-gex'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/ossl/hmac/hmac'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/ossl/hmac/md5'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/ossl/hmac/md5-96'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/ossl/hmac/none'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/ossl/hmac/sha1'
20
20
  require 'test/unit'
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
3
+ # Copyright (c) 2004,2005 Jamis Buck (jamis@37signals.com)
4
4
  # All rights reserved.
5
5
  #
6
6
  # This source file is distributed as part of the Net::SSH Secure Shell Client
@@ -14,7 +14,7 @@
14
14
  # =============================================================================
15
15
  #++
16
16
 
17
- $:.unshift "../../../../lib"
17
+ $:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
18
18
 
19
19
  require 'net/ssh/transport/ossl/hmac/sha1-96'
20
20
  require 'test/unit'