#91 ✓invalid
Peter Suschlik

OpenSSL::Digest::SHA256 fails with thin when thin loaded before openssl

Reported by Peter Suschlik | December 23rd, 2008 @ 09:17 AM | in Future

When thin is loaded before openssl then OpenSSL::Digest::SHA256 won't work.

How to reproduce

require 'rubygems'
require 'thin'
require 'openssl'
p OpenSSL::Digest::SHA256.digest("hello wolrd") # will fail

Workaround

Load openssl before thin (e.g. bin/thin)

require 'rubygems'
require 'openssl'
require 'thin'
p OpenSSL::Digest::SHA256.digest("hello wolrd") # SUCCESS!

Any thoughts?
I could provide some straces if needed

Kind regards
Peter

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages