Forum: IronRuby Status of OpenSSL

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
806ef55917f436850d2c4b0a5703e7cc?d=identicon&s=25 Jirapong Nanta (jirapong)
on 2009-04-25 19:46
(Received via mailing list)
I am working on OpenSSL implementation for IronRuby. base on ruby
spec, the results looked like this.

4 files, 8 examples, 2 expectations, 2 failures, 6 errors

My first implementation is
http://github.com/Jirapong/ironruby/commit/9758534...
After that, results:

4 files, 8 examples, 770 expectations, 0 failures, 2 errors

There are more methods and specs require in order to make rubygems and
rails work.

e.g. From rubygems unit tests

4: uninitialized constant OpenSSL::X509
2: uninitialized constant OpenSSL::PKey
2: SSL is not installed on this system

I will keep working on the implementation.

Thanks,
-Jirapong
Cb51033949ffccd982ae32c9f890f25a?d=identicon&s=25 Tomas Matousek (Guest)
on 2009-04-25 20:59
(Received via mailing list)
Instead of
var result = new StringBuilder(length);
byte[] data = new byte[length];

var generator = new Crypto.RNGCryptoServiceProvider();

generator.GetBytes(data);
for (int i = 0; i < length; i++) {
  result.Append(Convert.ToChar(data[i]));
}
return MutableString.Create(result.ToString());

you should create binary mutable string directly from the bytes:

byte[] data = new byte[length];
var generator = new Crypto.RNGCryptoServiceProvider();
generator.GetBytes(data);

return MutableString.CreateBinary(data);

Tomas

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of
jirapong.nanta@gmail.com
Sent: Saturday, April 25, 2009 10:35 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Status of OpenSSL

I am working on OpenSSL implementation for IronRuby. base on ruby spec,
the results looked like this.

4 files, 8 examples, 2 expectations, 2 failures, 6 errors

My first implementation is
http://github.com/Jirapong/ironruby/commit/9758534...
After that, results:

4 files, 8 examples, 770 expectations, 0 failures, 2 errors

There are more methods and specs require in order to make rubygems and
rails work.

e.g. From rubygems unit tests

4: uninitialized constant OpenSSL::X509
2: uninitialized constant OpenSSL::PKey
2: SSL is not installed on this system

I will keep working on the implementation.

Thanks,
-Jirapong
806ef55917f436850d2c4b0a5703e7cc?d=identicon&s=25 Jirapong Nanta (jirapong)
on 2009-04-26 06:25
(Received via mailing list)
Hi Tomas,
  That's work! please find change at cf5883e

Thank you,
-Jirapong
This topic is locked and can not be replied to.