Your one-liner gives me the 'true' which makes me think that I have the
correct environment for experimentations with your library. The reason
why I asked my first question was that when I run one of scripts in the
examples directory, I get this stack trace:
$ ruby channel-demo.rb
../lib/net/ssh/transport/cipher.rb:57:in `padding=': cannot convert
false into Integer (TypeError)
from ../lib/net/ssh/transport/cipher.rb:57:in `get'
from ../lib/net/ssh/transport/session.rb:282:in `exchange_keys'
from ../lib/net/ssh/transport/session.rb:109:in `initialize'
from ../lib/net/ssh.rb:118:in `new'
from ../lib/net/ssh.rb:118:in `open'
from ../lib/net/ssh.rb:80:in `start'
from channel-demo_1.rb:33
Cheers,
Kent.
On Jul 5, 2004, at 9:53 PM, Jamis Buck wrote:
> Kent Sibilev wrote:
>> Jemis,
>> Do I need to use your patched version of OpenSSL module with the
>> latest snapshot of Ruby 1.9?
Cheers,
Kent.
>
> Good question. I'm not familiar with the work being done on 1.9, so I
> have no idea if the patch I submitted made it to 1.9. It may have. I
> know it made it into 1.8.2.
>
> There's an easy way to find out:
>
> ruby -ropenssl
> -e "p OpenSSL::PKey::DH.instance_methods.include?('p=')"
>
> If this prints 'true', then you're good to go. Otherwise, you're out
> of luck. :( Let me know what you find out.
>
> -- Jamis Buck
> jgb3 / email.byu.edu
> http://www.jamisbuck.org/jamis
>
> ruby -ropenssl
> -e'k="01234567";p((c,c.padding,c.iv,c.key=OpenSSL::Cipher::
> BF.new,false,k,k*2)[0].decrypt.update("1A81803C452C324619D319F980D5B84D
> BB45FC0FE2BAA045".scan(/../).map{|n|n.to_i(16).chr}.join))'
>