From: Mike Furr Date: 2009-02-21T04:07:38+09:00 Subject: [ruby-core:22297] [Bug #1184] Type error in Integer#to_bn (via Openssl) Bug #1184: Type error in Integer#to_bn (via Openssl) http://redmine.ruby-lang.org/issues/show/1184 Author: Mike Furr Status: Open, Priority: Normal ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] The openssl library adds the to_bn method to the Integer class for creating an instance of the OpenSSL::BN class. The code, located in openssl/bn.rb, is: def to_bn OpenSSL::BN::new(self) end However, the constructor for the BN class takes a String, not an Integer. The following repoduces the error: require 'openssl' 3.to_bn => TypeError: can't convert Fixnum into String ---------------------------------------- http://redmine.ruby-lang.org