lib/bitcoin/ffi/openssl.rb in bitcoin-ruby-0.0.2 vs lib/bitcoin/ffi/openssl.rb in bitcoin-ruby-0.0.3

- old
+ new

@@ -6,10 +6,14 @@ Bitcoin.require_dependency :ffi, exit: false, message: "Skipping FFI needed for OpenSSL_EC methods." module Bitcoin module OpenSSL_EC extend FFI::Library - ffi_lib 'ssl' + if FFI::Platform.windows? + ffi_lib 'libeay32', 'ssleay32' + else + ffi_lib 'ssl' + end NID_secp256k1 = 714 POINT_CONVERSION_COMPRESSED = 2 POINT_CONVERSION_UNCOMPRESSED = 4