net-ssh 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -255,7 +255,7 @@
255
255
  <p>Furthermore, you must make sure that Ruby&#8217;s OpenSSL module has been compiled against <em>at least</em> version 0.9.7 of the OpenSSL library. Prior versions lacked functionality that Net::SSH depends on (notably, the &#8216;padding&#8217; property of ciphers).</p>
256
256
 
257
257
 
258
- <p>Optionally, you can install the <a href="http://raa.ruby-lang.org/project/ruby-termios">ruby-termios</a> and <a href="http://raa.ruby-lang.org/project/ruby-password">ruby-password</a> modules. If you do, then the ruby-password module will be used when prompting you for the passphrases needed to load your keys (if your keys have passphrases).</p>
258
+ <p>Optionally, you can install the <a href="http://raa.ruby-lang.org/project/ruby-termios">ruby-termios</a>. If you do, then your passwords won&#8217;t be echoed to the screen when prompting you for the passphrases needed to load your keys (if your keys have passphrases).</p>
259
259
 
260
260
 
261
261
  <h3>Using <a href="http://rubygems.rubyforge.org">RubyGems</a></h3>
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -359,9 +359,6 @@
359
359
  <p>When you use a private key that was created with a passphrase, you will be prompted to enter the passphrase when the key is loaded. This may make such a key inappropriate for use in automated environments, but it is certainly more secure than the use of unprotected private keys.</p>
360
360
 
361
361
 
362
- <p>If you have the <a href="http://raa.ruby-lang.org/project/ruby-termios">ruby-termios</a> and <a href="http://raa.ruby-lang.org/project/ruby-password">ruby-password</a> modules installed, the ruby-password module will be used when prompting for passphrases. Otherwise, a generic message (courtesy of the OpenSSL library) will be presented, which will not be very informative.</p>
363
-
364
-
365
362
  <h3>Using an <span class="caps">SSH</span> agent</h3>
366
363
 
367
364
 
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
  </td><td valign='middle' align='right'>
16
16
  <div class="info">
17
- Net::SSH Version: <strong>1.0.6</strong><br />
18
- Manual Last Updated: <strong>2006-01-20 06:08 UTC</strong>
17
+ Net::SSH Version: <strong>1.0.7</strong><br />
18
+ Manual Last Updated: <strong>2006-01-27 15:41 UTC</strong>
19
19
  </div>
20
20
  </td></tr>
21
21
  </table>
@@ -205,10 +205,6 @@
205
205
 
206
206
  API Documentation: <a href="http://net-ssh.rubyforge.org/api">http://net-ssh.rubyforge.org/api</a><br />
207
207
 
208
- FAQ Document: <a href="http://net-ssh.rubyforge.org/faq.html">http://net-ssh.rubyforge.org/faq.html</a><br />
209
-
210
- Net::SSH Wiki: <a href="http://net-ssh.rubyforge.org/wiki/wiki.pl">http://net-ssh.rubyforge.org/wiki/wiki.pl</a><br />
211
-
212
208
  </p>
213
209
 
214
210
 
@@ -216,14 +212,16 @@
216
212
  <table border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>
217
213
  <ul>
218
214
 
219
- <li>Corrected documentation for channel on_request callback.</li>
215
+ <li>Removed documentation indicating that ruby-password will be used if present (it won't)</li>
216
+
217
+ <li>Removed links to the wiki (which wasn't being used) and the faq (which never existed)</li>
220
218
 
221
219
  </ul>
222
220
  </table>
223
221
 
224
222
 
225
223
  <p class="copyright">
226
- Copyright &copy; 20042005
224
+ Copyright &copy; 2004-2006
227
225
  Jamis Buck
228
226
  (<a href="mailto:jamis@jamisbuck.org">jamis@jamisbuck.org</a>)
229
227
  </p>
@@ -6,7 +6,7 @@
6
6
  # http://creativecommons.org/licenses/by-sa/2.0/
7
7
 
8
8
  meta: !^meta
9
- copyright: 2004,2005
9
+ copyright: 2004-2006
10
10
  author: Jamis Buck
11
11
  email: jamis@jamisbuck.org
12
12
 
@@ -19,11 +19,10 @@ product: !^product
19
19
  - Project Page: http://rubyforge.org/projects/net-ssh
20
20
  - User Manual: http://net-ssh.rubyforge.org
21
21
  - API Documentation: http://net-ssh.rubyforge.org/api
22
- - FAQ Document: http://net-ssh.rubyforge.org/faq.html
23
- - Net::SSH Wiki: http://net-ssh.rubyforge.org/wiki/wiki.pl
24
22
 
25
23
  recent_updates:
26
- - "Corrected documentation for channel on_request callback."
24
+ - "Removed documentation indicating that ruby-password will be used if present (it won't)"
25
+ - "Removed links to the wiki (which wasn't being used) and the faq (which never existed)"
27
26
 
28
27
  chapters:
29
28
 
@@ -4,7 +4,7 @@ In order to use Net::SSH, you must be using a supported version of Ruby's OpenSS
4
4
 
5
5
  Furthermore, you must make sure that Ruby's OpenSSL module has been compiled against _at least_ version 0.9.7 of the OpenSSL library. Prior versions lacked functionality that Net::SSH depends on (notably, the 'padding' property of ciphers).
6
6
 
7
- Optionally, you can install the "ruby-termios":http://raa.ruby-lang.org/project/ruby-termios and "ruby-password":http://raa.ruby-lang.org/project/ruby-password modules. If you do, then the ruby-password module will be used when prompting you for the passphrases needed to load your keys (if your keys have passphrases).
7
+ Optionally, you can install the "ruby-termios":http://raa.ruby-lang.org/project/ruby-termios. If you do, then your passwords won't be echoed to the screen when prompting you for the passphrases needed to load your keys (if your keys have passphrases).
8
8
 
9
9
  h3. Using "RubyGems":http://rubygems.rubyforge.org
10
10
 
@@ -50,8 +50,6 @@ h3. Using keys with passphrases
50
50
 
51
51
  When you use a private key that was created with a passphrase, you will be prompted to enter the passphrase when the key is loaded. This may make such a key inappropriate for use in automated environments, but it is certainly more secure than the use of unprotected private keys.
52
52
 
53
- If you have the "ruby-termios":http://raa.ruby-lang.org/project/ruby-termios and "ruby-password":http://raa.ruby-lang.org/project/ruby-password modules installed, the ruby-password module will be used when prompting for passphrases. Otherwise, a generic message (courtesy of the OpenSSL library) will be presented, which will not be very informative.
54
-
55
53
  h3. Using an SSH agent
56
54
 
57
55
  Most SSH clients come with what is called an _agent_. This is a program that is continually running, and which keeps track of all of a user's keys. When an SSH client needs to perform an operation using one of the user's keys, it requests the operation via the agent, rather than performing the operation itself directly with a key.
@@ -166,6 +166,10 @@ module Net
166
166
  # read the remainder of the packet and decrypt it.
167
167
  data = read( remaining_to_read )
168
168
 
169
+ # get the hmac from the tail of the packet (if one exists), and
170
+ # then validate it.
171
+ hmac = @hmac.mac_length > 0 ? read( @hmac.mac_length ) : ""
172
+
169
173
  reader.append @cipher.update( data )
170
174
  reader.append @cipher.final
171
175
 
@@ -174,13 +178,8 @@ module Net
174
178
  payload = reader.read( packet_length - padding_length - 1 )
175
179
  padding = reader.read( padding_length ) if padding_length > 0
176
180
 
177
- # get the hmac from the tail of the packet (if one exists), and
178
- # then validate it.
179
- hmac = @hmac.mac_length > 0 ? @socket.recv( @hmac.mac_length ) : ""
180
-
181
181
  my_computed_hmac = compute_hmac( reader.content )
182
- raise Net::SSH::Exception,
183
- "corrupted mac detected" if hmac != my_computed_hmac
182
+ raise Net::SSH::Exception, "corrupted mac detected" if hmac != my_computed_hmac
184
183
 
185
184
  # decompress the payload
186
185
  payload = @decompressor.decompress( payload )
@@ -20,7 +20,7 @@ module Net
20
20
 
21
21
  MAJOR = 1
22
22
  MINOR = 0
23
- TINY = 6
23
+ TINY = 7
24
24
 
25
25
  STRING = [ MAJOR, MINOR, TINY ].join( "." )
26
26
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: net-ssh
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.6
7
- date: 2006-01-19 00:00:00 -07:00
6
+ version: 1.0.7
7
+ date: 2006-01-27 00:00:00 -07:00
8
8
  summary: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
9
9
  require_paths:
10
10
  - lib