Bug #1277: Incorrect passing of file handle between runtime libraries in OpenSSL extension
http://redmine.ruby-lang.org/issues/show/1277

Author: Charlie Savage
Status: Open, Priority: Normal
Category: ext, Target version: 1.9.1
ruby -v: ruby 1.9.2dev (2009-03-12) [i386-mswin32_90]

The openssl extension uses the BIO_new_fp openssl api, which takes a stream.  This causes segmentation faults on windows if openssl and the openssl ruby extension are using different runtime c libraries since you can't pass streams between libraries.

Better to use BIO_new_file.

Patch attached.


----------------------------------------
http://redmine.ruby-lang.org