#91 ✓invalid
Peter Suschlik

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

Reported by Peter Suschlik | 2008-12-23 09:17:12 UTC | 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