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.
- data/doc/LICENSE-BSD +1 -1
- data/doc/LICENSE-RUBY +1 -1
- data/doc/manual-html/chapter-1.html +4 -4
- data/doc/manual-html/chapter-2.html +2 -2
- data/doc/manual-html/chapter-3.html +2 -2
- data/doc/manual-html/chapter-4.html +2 -2
- data/doc/manual-html/chapter-5.html +2 -2
- data/doc/manual-html/chapter-6.html +2 -2
- data/doc/manual-html/chapter-7.html +2 -2
- data/doc/manual-html/index.html +2 -2
- data/doc/manual/parts/0003.txt +1 -1
- data/doc/manual/parts/0005.txt +1 -1
- data/examples/channel-demo.rb +1 -1
- data/examples/port-forward.rb +1 -1
- data/examples/process-demo.rb +1 -1
- data/examples/remote-net-port-forward.rb +1 -1
- data/examples/remote-port-forward.rb +1 -1
- data/examples/shell-demo.rb +1 -1
- data/examples/ssh-client.rb +1 -1
- data/examples/sync-shell-demo.rb +1 -1
- data/examples/tail-demo.rb +1 -1
- data/lib/net/ssh.rb +1 -1
- data/lib/net/ssh/connection/channel.rb +1 -1
- data/lib/net/ssh/connection/constants.rb +1 -1
- data/lib/net/ssh/connection/driver.rb +1 -1
- data/lib/net/ssh/connection/services.rb +1 -1
- data/lib/net/ssh/connection/term.rb +1 -1
- data/lib/net/ssh/errors.rb +1 -1
- data/lib/net/ssh/proxy/errors.rb +1 -1
- data/lib/net/ssh/proxy/http.rb +1 -1
- data/lib/net/ssh/proxy/socks4.rb +1 -1
- data/lib/net/ssh/proxy/socks5.rb +1 -1
- data/lib/net/ssh/service/forward/driver.rb +1 -1
- data/lib/net/ssh/service/forward/local-network-handler.rb +1 -1
- data/lib/net/ssh/service/forward/remote-network-handler.rb +1 -1
- data/lib/net/ssh/service/forward/services.rb +1 -1
- data/lib/net/ssh/service/process/driver.rb +1 -1
- data/lib/net/ssh/service/process/open.rb +1 -1
- data/lib/net/ssh/service/process/popen3.rb +1 -1
- data/lib/net/ssh/service/process/services.rb +1 -1
- data/lib/net/ssh/service/services.rb +1 -1
- data/lib/net/ssh/service/shell/driver.rb +1 -1
- data/lib/net/ssh/service/shell/services.rb +1 -1
- data/lib/net/ssh/service/shell/shell.rb +1 -1
- data/lib/net/ssh/service/shell/sync.rb +1 -1
- data/lib/net/ssh/session.rb +1 -1
- data/lib/net/ssh/transport/algorithm-negotiator.rb +1 -1
- data/lib/net/ssh/transport/compress/compressor.rb +1 -1
- data/lib/net/ssh/transport/compress/decompressor.rb +1 -1
- data/lib/net/ssh/transport/compress/none-compressor.rb +1 -1
- data/lib/net/ssh/transport/compress/none-decompressor.rb +1 -1
- data/lib/net/ssh/transport/compress/services.rb +1 -1
- data/lib/net/ssh/transport/compress/zlib-compressor.rb +1 -1
- data/lib/net/ssh/transport/compress/zlib-decompressor.rb +1 -1
- data/lib/net/ssh/transport/constants.rb +1 -1
- data/lib/net/ssh/transport/errors.rb +1 -1
- data/lib/net/ssh/transport/identity-cipher.rb +1 -1
- data/lib/net/ssh/transport/kex/dh-gex.rb +1 -1
- data/lib/net/ssh/transport/kex/dh.rb +1 -1
- data/lib/net/ssh/transport/kex/services.rb +1 -1
- data/lib/net/ssh/transport/ossl/buffer-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/buffer.rb +1 -1
- data/lib/net/ssh/transport/ossl/cipher-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/digest-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/hmac.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/md5-96.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/md5.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/none.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/services.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/sha1-96.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/sha1.rb +1 -1
- data/lib/net/ssh/transport/ossl/key-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/services.rb +1 -1
- data/lib/net/ssh/transport/packet-stream.rb +1 -1
- data/lib/net/ssh/transport/services.rb +1 -1
- data/lib/net/ssh/transport/session.rb +1 -1
- data/lib/net/ssh/transport/version-negotiator.rb +1 -1
- data/lib/net/ssh/userauth/agent.rb +1 -1
- data/lib/net/ssh/userauth/constants.rb +1 -1
- data/lib/net/ssh/userauth/driver.rb +1 -1
- data/lib/net/ssh/userauth/methods/hostbased.rb +1 -1
- data/lib/net/ssh/userauth/methods/keyboard-interactive.rb +1 -1
- data/lib/net/ssh/userauth/methods/password.rb +1 -1
- data/lib/net/ssh/userauth/methods/publickey.rb +1 -1
- data/lib/net/ssh/userauth/methods/services.rb +1 -1
- data/lib/net/ssh/userauth/pageant.rb +1 -1
- data/lib/net/ssh/userauth/services.rb +1 -1
- data/lib/net/ssh/userauth/userkeys.rb +1 -1
- data/lib/net/ssh/util/buffer.rb +1 -1
- data/lib/net/ssh/util/openssl.rb +1 -1
- data/lib/net/ssh/util/prompter.rb +1 -1
- data/lib/net/ssh/version.rb +2 -2
- data/test/ALL-TESTS.rb +2 -5
- data/test/connection/tc_channel.rb +2 -2
- data/test/connection/tc_driver.rb +2 -2
- data/test/connection/tc_integration.rb +2 -2
- data/test/proxy/tc_http.rb +2 -2
- data/test/proxy/tc_socks4.rb +2 -2
- data/test/proxy/tc_socks5.rb +2 -2
- data/test/service/forward/tc_driver.rb +2 -2
- data/test/service/forward/tc_local_network_handler.rb +2 -2
- data/test/service/forward/tc_remote_network_handler.rb +2 -2
- data/test/service/process/tc_driver.rb +2 -2
- data/test/service/process/tc_integration.rb +2 -2
- data/test/service/process/tc_open.rb +2 -2
- data/test/service/process/tc_popen3.rb +2 -2
- data/test/tc_integration.rb +2 -2
- data/test/transport/compress/tc_none_compress.rb +2 -2
- data/test/transport/compress/tc_none_decompress.rb +2 -2
- data/test/transport/compress/tc_zlib_compress.rb +2 -2
- data/test/transport/compress/tc_zlib_decompress.rb +2 -2
- data/test/transport/kex/tc_dh.rb +12 -11
- data/test/transport/kex/tc_dh_gex.rb +3 -3
- data/test/transport/ossl/hmac/tc_hmac.rb +2 -2
- data/test/transport/ossl/hmac/tc_md5.rb +2 -2
- data/test/transport/ossl/hmac/tc_md5_96.rb +2 -2
- data/test/transport/ossl/hmac/tc_none.rb +2 -2
- data/test/transport/ossl/hmac/tc_sha1.rb +2 -2
- data/test/transport/ossl/hmac/tc_sha1_96.rb +2 -2
- data/test/transport/ossl/tc_buffer.rb +2 -2
- data/test/transport/ossl/tc_buffer_factory.rb +2 -2
- data/test/transport/ossl/tc_cipher_factory.rb +2 -2
- data/test/transport/ossl/tc_digest_factory.rb +2 -2
- data/test/transport/ossl/tc_hmac_factory.rb +2 -2
- data/test/transport/ossl/tc_key_factory.rb +2 -2
- data/test/transport/tc_algorithm_negotiator.rb +2 -2
- data/test/transport/tc_identity_cipher.rb +2 -2
- data/test/transport/tc_integration.rb +2 -2
- data/test/transport/tc_packet_stream.rb +2 -2
- data/test/transport/tc_session.rb +2 -2
- data/test/transport/tc_version_negotiator.rb +2 -2
- data/test/userauth/methods/tc_hostbased.rb +2 -2
- data/test/userauth/methods/tc_password.rb +2 -2
- data/test/userauth/methods/tc_publickey.rb +2 -2
- data/test/userauth/tc_agent.rb +2 -2
- data/test/userauth/tc_driver.rb +2 -2
- data/test/userauth/tc_integration.rb +2 -2
- data/test/userauth/tc_userkeys.rb +2 -2
- data/test/util/tc_buffer.rb +2 -2
- metadata +252 -249
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#--
|
|
2
2
|
# =============================================================================
|
|
3
|
-
# Copyright (c) 2004,2005 Jamis Buck (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
17
|
+
$:.unshift "#{File.dirname(__FILE__)}/../../lib"
|
|
18
18
|
|
|
19
19
|
if $run_integration_tests || __FILE__ == $0
|
|
20
20
|
|
data/test/proxy/tc_http.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#--
|
|
2
2
|
# =============================================================================
|
|
3
|
-
# Copyright (c) 2004,2005 Jamis Buck (
|
|
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 "
|
|
17
|
+
$:.unshift "#{File.dirname(__FILE__)}/../../lib"
|
|
18
18
|
|
|
19
19
|
require 'test/unit'
|
|
20
20
|
require 'net/ssh/proxy/http'
|
data/test/proxy/tc_socks4.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#--
|
|
2
2
|
# =============================================================================
|
|
3
|
-
# Copyright (c) 2004,2005 Jamis Buck (
|
|
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 "
|
|
17
|
+
$:.unshift "#{File.dirname(__FILE__)}/../../lib"
|
|
18
18
|
|
|
19
19
|
require 'test/unit'
|
|
20
20
|
require 'net/ssh/proxy/socks4'
|
data/test/proxy/tc_socks5.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#--
|
|
2
2
|
# =============================================================================
|
|
3
|
-
# Copyright (c) 2004,2005 Jamis Buck (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
17
|
+
$:.unshift "#{File.dirname(__FILE__)}/../../../lib"
|
|
18
18
|
|
|
19
19
|
require 'test/unit'
|
|
20
20
|
require 'net/ssh/service/process/popen3'
|
data/test/tc_integration.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#--
|
|
2
2
|
# =============================================================================
|
|
3
|
-
# Copyright (c) 2004,2005 Jamis Buck (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
17
|
+
$:.unshift "#{File.dirname(__FILE__)}/../../../lib"
|
|
18
18
|
|
|
19
19
|
require 'net/ssh/transport/compress/zlib-decompressor'
|
|
20
20
|
require 'test/unit'
|
data/test/transport/kex/tc_dh.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#--
|
|
2
2
|
# =============================================================================
|
|
3
|
-
# Copyright (c) 2004,2005 Jamis Buck (
|
|
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 "
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
35
|
-
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
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 (
|
|
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 "
|
|
17
|
+
$:.unshift "#{File.dirname(__FILE__)}/../../../../lib"
|
|
18
18
|
|
|
19
19
|
require 'net/ssh/transport/ossl/hmac/sha1-96'
|
|
20
20
|
require 'test/unit'
|